This commit is contained in:
Alexander Tokmakov 2023-08-21 14:05:23 +02:00
parent 5a4b001f8e
commit f127189492
2 changed files with 4 additions and 0 deletions

View File

@ -1,4 +1,5 @@
default begin inserts
default end inserts
default threads finished
30 465
30 465

View File

@ -72,6 +72,9 @@ $CLICKHOUSE_CLIENT -q "SELECT '$CLICKHOUSE_DATABASE', 'end inserts'"
kill -TERM $PID_1 && kill -TERM $PID_2 && kill -TERM $PID_3 && kill -TERM $PID_4
wait
$CLICKHOUSE_CLIENT -q "SELECT '$CLICKHOUSE_DATABASE', 'threads finished'"
wait_for_queries_to_finish
$CLICKHOUSE_CLIENT -q "SYSTEM SYNC REPLICA alter_table0"
$CLICKHOUSE_CLIENT -q "SYSTEM SYNC REPLICA alter_table1"
query_with_retry "ALTER TABLE alter_table0 ATTACH PARTITION ID 'all'" 2>/dev/null;