Update 01459_manual_write_to_replicas_quorum_detach_attach.sh

This commit is contained in:
Alexander Tokmakov 2024-09-27 18:43:50 +02:00 committed by GitHub
parent 371e49d3a2
commit 30b0abe0c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,7 +36,7 @@ done
wait
for i in $(seq 1 $NUM_REPLICAS); do
while [[ $($CLICKHOUSE_CLIENT -q "SYSTEM SYNC REPLICA r$i;" 2>&1) ]]; do :; done | grep -F "Exception: " | grep -Fv "Table is in readonly mode"
(while [[ $($CLICKHOUSE_CLIENT -q "SYSTEM SYNC REPLICA r$i;" 2>&1) ]]; do sleep 0.001; done) | grep -F "Exception: " | grep -Fv "Table is in readonly mode"
$CLICKHOUSE_CLIENT -q "SELECT count(), min(x), max(x), sum(x) FROM r$i;"
done