Merge pull request #52587 from ClickHouse/fix-again-02497_trace_events_stress_long

Fix `02497_trace_events_stress_long` again
This commit is contained in:
Antonio Andelic 2023-07-26 11:10:32 +02:00 committed by GitHub
commit 63d88ebf3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,4 +45,11 @@ thread2 $TIMEOUT >/dev/null &
wait
$CLICKHOUSE_CLIENT -q "SELECT count() FROM system.processes WHERE query_id LIKE '02497_$CLICKHOUSE_DATABASE%'" | rg '^0$'
for _ in {1..10}
do
# process list is cleaned after everything is sent to client
# so this check can be run before process list is cleaned
# to avoid spurious failures we retry the check couple of times
$CLICKHOUSE_CLIENT -q "SELECT count() FROM system.processes WHERE query_id LIKE '02497_$CLICKHOUSE_DATABASE%'" | rg '^0$' && break
sleep 1
done