mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Remove redundat sync replica
This commit is contained in:
parent
9135cb1bf1
commit
ca552d6394
@ -89,12 +89,6 @@ for i in `seq $REPLICAS`; do
|
|||||||
$CLICKHOUSE_CLIENT --query "ATTACH TABLE concurrent_alter_detach_$i" 2> /dev/null
|
$CLICKHOUSE_CLIENT --query "ATTACH TABLE concurrent_alter_detach_$i" 2> /dev/null
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
for i in `seq $REPLICAS`; do
|
|
||||||
$CLICKHOUSE_CLIENT --query "SYSTEM SYNC REPLICA concurrent_alter_detach_$i"
|
|
||||||
done
|
|
||||||
|
|
||||||
|
|
||||||
# This alter will finish all previous, but replica 1 maybe still not up-to-date
|
# This alter will finish all previous, but replica 1 maybe still not up-to-date
|
||||||
while [[ $(timeout 120 $CLICKHOUSE_CLIENT --query "ALTER TABLE concurrent_alter_detach_1 MODIFY COLUMN value1 String SETTINGS replication_alter_partitions_sync=2" 2>&1) ]]; do
|
while [[ $(timeout 120 $CLICKHOUSE_CLIENT --query "ALTER TABLE concurrent_alter_detach_1 MODIFY COLUMN value1 String SETTINGS replication_alter_partitions_sync=2" 2>&1) ]]; do
|
||||||
sleep 1
|
sleep 1
|
||||||
|
Loading…
Reference in New Issue
Block a user