stress: ignore server memory limits for hung check

In [1] hung check failed because the server was under memory pressure.

  [1]: https://s3.amazonaws.com/clickhouse-test-reports/32019/b6290ae00223fc91d514b82de25e195ab34f8bca/stress_test__undefined__actions_.html
This commit is contained in:
Azat Khuzhin 2021-12-03 01:32:06 +03:00
parent 8b1bced6ca
commit 445b0983ea

View File

@ -188,7 +188,13 @@ if __name__ == "__main__":
if args.hung_check:
have_long_running_queries = prepare_for_hung_check(args.drop_databases)
logging.info("Checking if some queries hung")
cmd = "{} {} {}".format(args.test_cmd, "--hung-check", "00001_select_1")
cmd = ' '.join([args.test_cmd,
# Do not track memory allocations up to 100MiB,
# this will allow to ignore server memory limit (max_server_memory_usage) for this query.
"--client-option", "max_untracked_memory=100Mi",
"--hung-check",
"00001_select_1"
])
res = call(cmd, shell=True, stderr=STDOUT)
hung_check_status = "No queries hung\tOK\n"
if res != 0 and have_long_running_queries: