Make 01290_max_execution_speed_distributed less flaky

This commit is contained in:
Azat Khuzhin 2020-12-11 21:10:37 +03:00
parent 77a1d00dee
commit 41bc43325b

View File

@ -1,4 +1,8 @@
SET max_execution_speed = 1000000, timeout_before_checking_execution_speed = 0.001, max_block_size = 100;
SET max_execution_speed = 1000000;
SET timeout_before_checking_execution_speed = 0.001;
SET max_block_size = 100;
SET log_queries=1;
CREATE TEMPORARY TABLE times (t DateTime);
@ -10,4 +14,10 @@ SELECT max(t) - min(t) >= 1 FROM times;
-- Check that the query was also throttled on "remote" servers.
SYSTEM FLUSH LOGS;
SELECT DISTINCT query_duration_ms >= 500 FROM system.query_log WHERE event_date >= yesterday() AND query LIKE '%special query for 01290_max_execution_speed_distributed%' AND type = 2;
SELECT DISTINCT query_duration_ms >= 500
FROM system.query_log
WHERE
event_date >= yesterday() AND
query LIKE '%special query for 01290_max_execution_speed_distributed%' AND
query NOT LIKE '%system.query_log%' AND
type = 2;