mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +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 &
|
timeout $TIMEOUT bash -c restart_thread_2 2> /dev/null &
|
||||||
|
|
||||||
wait
|
wait
|
||||||
sleep 3
|
|
||||||
|
|
||||||
for i in `seq 4`; do
|
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" >/dev/null 2>&1
|
||||||
$CLICKHOUSE_CLIENT -q "SYSTEM SYNC REPLICA replica_01108_${i}_tmp" >/dev/null 2>&1
|
$CLICKHOUSE_CLIENT -q "SYSTEM SYNC REPLICA replica_01108_${i}_tmp" >/dev/null 2>&1
|
||||||
done
|
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 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')"
|
$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