Skip to content

Commit b3c613b

Browse files
Update 01079_parallel_alter_detach_table_zookeeper.sh
1 parent c9dcbfb commit b3c613b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/queries/0_stateless/01079_parallel_alter_detach_table_zookeeper.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ for i in $(seq $REPLICAS); do
117117
$CLICKHOUSE_CLIENT --query "SELECT SUM(toUInt64(value1)) > $INITIAL_SUM FROM concurrent_alter_detach_$i"
118118

119119
# Wait for all mutations and replication queue entries to finish.
120-
# SYSTEM SYNC REPLICA may return while a MUTATE_PART entry is postponed
121-
# (e.g. waiting for an in-progress MERGE_PARTS on the same part to complete).
120+
# In this case, it might be more robust than SYSTEM SYNC REPLICA
121+
# for unclear reasons.
122122
for _ in {1..120}; do
123123
mutations_count=$($CLICKHOUSE_CLIENT --query "SELECT count() FROM system.mutations WHERE database = '$CLICKHOUSE_DATABASE' AND is_done = 0 AND table = 'concurrent_alter_detach_$i'")
124124
queue_count=$($CLICKHOUSE_CLIENT --query "SELECT count() FROM system.replication_queue WHERE database = '$CLICKHOUSE_DATABASE' AND table = 'concurrent_alter_detach_$i' AND (type = 'ALTER_METADATA' OR type = 'MUTATE_PART')")

0 commit comments

Comments
 (0)