Merge pull request #72558 from azat/ci/faster-shutdown

Fix possible CI failures due to slow logs proxy tables shutdown
This commit is contained in:
Alexey Milovidov 2024-11-28 12:48:14 +00:00 committed by GitHub
commit c8942bb213
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -184,6 +184,9 @@ function stop_server()
# Preserve the pid, since the server can hung after the PID will be deleted.
pid="$(cat /var/run/clickhouse-server/clickhouse-server.pid)"
# FIXME: workaround for slow shutdown of Distributed tables (due to sequential tables shutdown)
# Refs: https://github.com/ClickHouse/ClickHouse/issues/72557
clickhouse client -q "SYSTEM STOP DISTRIBUTED SENDS" ||:
clickhouse stop --max-tries "$max_tries" --do-not-kill && return
if [ "$check_hang" == true ]