mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Merge pull request #11290 from ClickHouse/attempt-to-fix-flacky-test
Attempt to fix flacky test 01108_restart_replicas_rename_deadlock.sh
This commit is contained in:
commit
88d6633d90
@ -1 +1,5 @@
|
||||
replica_01108_1
|
||||
replica_01108_2
|
||||
replica_01108_3
|
||||
replica_01108_4
|
||||
1180 40
|
||||
|
@ -53,7 +53,7 @@ export -f rename_thread_2;
|
||||
export -f restart_thread_1;
|
||||
export -f restart_thread_2;
|
||||
|
||||
TIMEOUT=30
|
||||
TIMEOUT=10
|
||||
|
||||
timeout $TIMEOUT bash -c rename_thread_1 2> /dev/null &
|
||||
timeout $TIMEOUT bash -c rename_thread_2 2> /dev/null &
|
||||
@ -63,6 +63,12 @@ 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
|
||||
|
||||
$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