mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 07:01:59 +00:00
try fix flacky test
This commit is contained in:
parent
11a4ea5665
commit
3f389c1a19
@ -61,13 +61,16 @@ timeout $TIMEOUT bash -c restart_thread_1 2> /dev/null &
|
||||
timeout $TIMEOUT bash -c restart_thread_2 2> /dev/null &
|
||||
|
||||
wait
|
||||
sleep 3
|
||||
|
||||
for i in `seq 4`; do
|
||||
$CLICKHOUSE_CLIENT -q "SYSTEM SYNC REPLICA replica_01108_$i" >/dev/null 2>&1
|
||||
$CLICKHOUSE_CLIENT -q "SYSTEM SYNC REPLICA replica_01108_${i}_tmp" >/dev/null 2>&1
|
||||
done
|
||||
|
||||
while [[ `$CLICKHOUSE_CLIENT -q "SELECT count() FROM system.processes WHERE query LIKE 'RENAME%'"` -gt 0 ]]; do
|
||||
sleep 1
|
||||
done;
|
||||
|
||||
$CLICKHOUSE_CLIENT -q "SELECT replaceOne(name, '_tmp', '') FROM system.tables WHERE database = currentDatabase() AND match(name, '^replica_01108_')"
|
||||
$CLICKHOUSE_CLIENT -q "SELECT sum(n), count(n) FROM merge(currentDatabase(), '^replica_01108_') GROUP BY position(_table, 'tmp')"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user