From 5fdd2b67ee7a89ce02d1c27fe0c66bda957c8fc2 Mon Sep 17 00:00:00 2001 From: tavplubix Date: Sun, 19 Sep 2021 01:05:17 +0300 Subject: [PATCH] Update clickhouse-test --- tests/clickhouse-test | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/clickhouse-test b/tests/clickhouse-test index 68352c6b78d..b8b67181d9a 100755 --- a/tests/clickhouse-test +++ b/tests/clickhouse-test @@ -998,9 +998,14 @@ def main(args): return stdout.startswith(b'1') if not check_server_started(args.client, args.server_check_retries): - raise Exception( - "Server is not responding. Cannot execute 'SELECT 1' query. \ - If you are using split build, you have to specify -c option.") + msg = "Server is not responding. Cannot execute 'SELECT 1' query. \ + If you are using split build, you have to specify -c option." + if args.hung_check: + print(msg) + pid = get_server_pid() + print("Got server pid", pid) + print_stacktraces() + raise Exception(msg) args.build_flags = collect_build_flags(args.client)