Tune TTL of the background query in 01541_max_memory_usage_for_user

This commit is contained in:
Azat Khuzhin 2020-10-24 09:06:49 +03:00
parent 96da5f6534
commit c3c6ac39e0

View File

@ -35,7 +35,7 @@ function execute_tcp_one_session()
# one users query in background (to avoid reseting max_memory_usage_for_user) # one users query in background (to avoid reseting max_memory_usage_for_user)
# --max_block_size=1 to make it killable (check the state each 1 second, 1 row) # --max_block_size=1 to make it killable (check the state each 1 second, 1 row)
# (the test takes ~40 seconds in debug build, so 60 seconds is ok) # (the test takes ~40 seconds in debug build, so 60 seconds is ok)
${CLICKHOUSE_CLIENT} --max_block_size=1 --format Null -q 'SELECT sleepEachRow(1) FROM numbers(60)' & ${CLICKHOUSE_CLIENT} --max_block_size=1 --format Null -q 'SELECT sleepEachRow(1) FROM numbers(600)' &
# trap # trap
sleep_query_pid=$! sleep_query_pid=$!
function cleanup() function cleanup()