Update 01459_manual_write_to_replicas_quorum_detach_attach.sh

This commit is contained in:
Alexander Tokmakov 2024-09-30 20:46:22 +02:00 committed by GitHub
parent 30b0abe0c8
commit 35617d25c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,7 +36,7 @@ done
wait wait
for i in $(seq 1 $NUM_REPLICAS); do for i in $(seq 1 $NUM_REPLICAS); do
(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" (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;" $CLICKHOUSE_CLIENT -q "SELECT count(), min(x), max(x), sum(x) FROM r$i;"
done done