Fix query in stress script

Signed-off-by: Pradeep Chhetri <pradeepchhetri4444@gmail.com>
This commit is contained in:
Pradeep Chhetri 2023-01-21 01:38:59 +08:00
parent 4bbe90f6b4
commit c5ea27446e

View File

@ -200,7 +200,7 @@ def prepare_for_hung_check(drop_databases):
# Even if all clickhouse-test processes are finished, there are probably some sh scripts,
# which still run some new queries. Let's ignore them.
try:
query = """clickhouse client -q "SELECT count() FROM system.processes where where elapsed > 300" """
query = """clickhouse client -q "SELECT count() FROM system.processes where elapsed > 300" """
output = (
check_output(query, shell=True, stderr=STDOUT, timeout=30)
.decode("utf-8")