From 1ac247ed82e583a47c30ee172a856c272f25d00d Mon Sep 17 00:00:00 2001 From: Alexander Sapin Date: Thu, 14 Mar 2024 12:13:33 +0100 Subject: [PATCH] Tiny improvement for replication.lib --- tests/queries/0_stateless/replication.lib | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/queries/0_stateless/replication.lib b/tests/queries/0_stateless/replication.lib index 143332d9974..2e21f351d2a 100755 --- a/tests/queries/0_stateless/replication.lib +++ b/tests/queries/0_stateless/replication.lib @@ -26,12 +26,15 @@ function try_sync_replicas() done done - i=0 for t in "${tables_arr[@]}" do # Do not start new merges (it can make SYNC a bit faster) $CLICKHOUSE_CLIENT -q "ALTER TABLE $t MODIFY SETTING max_replicated_merges_in_queue=0" + done + i=0 + for t in "${tables_arr[@]}" + do $CLICKHOUSE_CLIENT --receive_timeout $time_left -q "SYSTEM SYNC REPLICA $t STRICT" || ($CLICKHOUSE_CLIENT -q \ "select 'sync failed, queue:', * from system.replication_queue where database=currentDatabase() and table='$t' order by database, table, node_name" && exit 1) & pids[${i}]=$!