mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Make 01290_max_execution_speed_distributed less flaky
This commit is contained in:
parent
77a1d00dee
commit
41bc43325b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user