Skip to content

Commit 57af010

Browse files
Merge pull request #14117 from ClickHouse/fix-flaky-test-11
Increase timeout in test
2 parents d388834 + b27be98 commit 57af010

File tree

1 file changed

+7
-7
lines changed
  • tests/integration/test_adaptive_granularity

1 file changed

+7
-7
lines changed

tests/integration/test_adaptive_granularity/test.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def callback(n):
301301

302302
def test_version_update_two_nodes(start_dynamic_cluster):
303303
node11.query("INSERT INTO table_with_default_granularity VALUES (toDate('2018-10-01'), 1, 333), (toDate('2018-10-02'), 2, 444)")
304-
node12.query("SYSTEM SYNC REPLICA table_with_default_granularity", timeout=10)
304+
node12.query("SYSTEM SYNC REPLICA table_with_default_granularity", timeout=20)
305305
assert node12.query("SELECT COUNT() FROM table_with_default_granularity") == '2\n'
306306
def callback(n):
307307
n.replace_config("/etc/clickhouse-server/merge_tree_settings.xml", "<yandex><merge_tree><enable_mixed_granularity_parts>0</enable_mixed_granularity_parts></merge_tree></yandex>")
@@ -310,7 +310,7 @@ def callback(n):
310310
node12.restart_with_latest_version(callback_onstop=callback)
311311

312312
node12.query("INSERT INTO table_with_default_granularity VALUES (toDate('2018-10-01'), 3, 333), (toDate('2018-10-02'), 4, 444)")
313-
node11.query("SYSTEM SYNC REPLICA table_with_default_granularity", timeout=10)
313+
node11.query("SYSTEM SYNC REPLICA table_with_default_granularity", timeout=20)
314314
assert node11.query("SELECT COUNT() FROM table_with_default_granularity") == '4\n'
315315

316316
node12.query(
@@ -331,17 +331,17 @@ def callback(n):
331331

332332
node12.query("INSERT INTO table_with_default_granularity_new VALUES (toDate('2018-10-01'), 1, 333), (toDate('2018-10-02'), 2, 444)")
333333
with pytest.raises(QueryTimeoutExceedException):
334-
node11.query("SYSTEM SYNC REPLICA table_with_default_granularity_new", timeout=5)
334+
node11.query("SYSTEM SYNC REPLICA table_with_default_granularity_new", timeout=20)
335335
node12.query("INSERT INTO table_with_default_granularity_new VALUES (toDate('2018-10-01'), 3, 333), (toDate('2018-10-02'), 4, 444)")
336336

337337
node11.restart_with_latest_version(callback_onstop=callback) # just to be sure
338338

339-
node11.query("SYSTEM SYNC REPLICA table_with_default_granularity_new", timeout=5)
340-
node12.query("SYSTEM SYNC REPLICA table_with_default_granularity_new", timeout=5)
339+
node11.query("SYSTEM SYNC REPLICA table_with_default_granularity_new", timeout=20)
340+
node12.query("SYSTEM SYNC REPLICA table_with_default_granularity_new", timeout=20)
341341
node11.query("SELECT COUNT() FROM table_with_default_granularity_new") == "4\n"
342342
node12.query("SELECT COUNT() FROM table_with_default_granularity_new") == "4\n"
343343

344-
node11.query("SYSTEM SYNC REPLICA table_with_default_granularity", timeout=5)
344+
node11.query("SYSTEM SYNC REPLICA table_with_default_granularity", timeout=20)
345345
node11.query("INSERT INTO table_with_default_granularity VALUES (toDate('2018-10-01'), 5, 333), (toDate('2018-10-02'), 6, 444)")
346-
node12.query("SYSTEM SYNC REPLICA table_with_default_granularity", timeout=5)
346+
node12.query("SYSTEM SYNC REPLICA table_with_default_granularity", timeout=20)
347347
assert node12.query("SELECT COUNT() FROM table_with_default_granularity") == '6\n'

0 commit comments

Comments
 (0)