mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-14 17:02:56 +00:00
Disable statement_timeout
This commit is contained in:
@@ -14,8 +14,7 @@ from fixtures.utils import USE_LFC
|
||||
|
||||
|
||||
@pytest.mark.timeout(100000)
|
||||
@pytest.mark.remote_cluster
|
||||
@pytest.mark.parametrize("n_readers", [1, 2, 4, 8])
|
||||
@pytest.mark.parametrize("n_readers", [8, 1, 2, 4])
|
||||
@pytest.mark.parametrize("n_writers", [0, 1, 2, 4, 8])
|
||||
@pytest.mark.parametrize("chunk_size", [1, 8, 16])
|
||||
@pytest.mark.skipif(not USE_LFC, reason="LFC is disabled, skipping")
|
||||
@@ -34,7 +33,6 @@ def test_lfc_prefetch(neon_simple_env: NeonEnv, n_readers: int, n_writers: int,
|
||||
"enable_bitmapscan=off",
|
||||
"enable_seqscan=off",
|
||||
"autovacuum=off",
|
||||
"statement_timeout=0",
|
||||
f"neon.file_cache_chunk_size={chunk_size}",
|
||||
"neon.store_prefetch_result_in_lfc=on",
|
||||
],
|
||||
@@ -55,6 +53,7 @@ def test_lfc_prefetch(neon_simple_env: NeonEnv, n_readers: int, n_writers: int,
|
||||
conn = endpoint.connect()
|
||||
cur = conn.cursor()
|
||||
i = 0
|
||||
cur.execute("set statement_timeout=0")
|
||||
while running:
|
||||
cur.execute(
|
||||
f"select sum(balance) from (select balance from account order by id limit {top_n}) s"
|
||||
@@ -68,6 +67,7 @@ def test_lfc_prefetch(neon_simple_env: NeonEnv, n_readers: int, n_writers: int,
|
||||
conn = endpoint.connect()
|
||||
cur = conn.cursor()
|
||||
i = 0
|
||||
cur.execute("set statement_timeout=0")
|
||||
while running:
|
||||
r1 = random.randint(1, top_n)
|
||||
r2 = random.randint(1, top_n)
|
||||
|
||||
Reference in New Issue
Block a user