Add hard timeouts to alter tests

This commit is contained in:
alesapin 2020-03-30 13:21:08 +03:00
parent 99979a29df
commit 8d19f9f7d7
3 changed files with 3 additions and 3 deletions

View File

@ -97,7 +97,7 @@ done
echo "Equal number of columns" echo "Equal number of columns"
# 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 [[ $($CLICKHOUSE_CLIENT --query "ALTER TABLE concurrent_alter_add_drop_1 MODIFY COLUMN value0 String SETTINGS replication_alter_partitions_sync=2" 2>&1) ]]; do while [[ $(timeout 30 $CLICKHOUSE_CLIENT --query "ALTER TABLE concurrent_alter_add_drop_1 MODIFY COLUMN value0 String SETTINGS replication_alter_partitions_sync=2" 2>&1) ]]; do
sleep 1 sleep 1
done done

View File

@ -96,7 +96,7 @@ 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 [[ $($CLICKHOUSE_CLIENT --query "ALTER TABLE concurrent_alter_detach_1 MODIFY COLUMN value1 String SETTINGS replication_alter_partitions_sync=2" 2>&1) ]]; do while [[ $(timeout 30 $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
done done

View File

@ -101,7 +101,7 @@ wait
echo "Finishing alters" echo "Finishing alters"
# 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 [[ $($CLICKHOUSE_CLIENT --query "ALTER TABLE concurrent_alter_mt_1 MODIFY COLUMN value1 String SETTINGS replication_alter_partitions_sync=2" 2>&1) ]]; do while [[ $(timeout 30 $CLICKHOUSE_CLIENT --query "ALTER TABLE concurrent_alter_mt_1 MODIFY COLUMN value1 String SETTINGS replication_alter_partitions_sync=2" 2>&1) ]]; do
sleep 1 sleep 1
done done