mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 07:01:59 +00:00
Added a test for #5732
This commit is contained in:
parent
9768743d09
commit
fe9bd0e918
@ -0,0 +1,4 @@
|
||||
2000000
|
||||
1
|
||||
1
|
||||
0
|
@ -0,0 +1,13 @@
|
||||
SET max_execution_speed = 1000000, timeout_before_checking_execution_speed = 0.001, max_block_size = 100;
|
||||
|
||||
CREATE TEMPORARY TABLE times (t DateTime);
|
||||
|
||||
INSERT INTO times SELECT now();
|
||||
SELECT count('special query for 01290_max_execution_speed_distributed') FROM remote('127.0.0.{2,3}', numbers(1000000));
|
||||
INSERT INTO times SELECT now();
|
||||
|
||||
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;
|
Loading…
Reference in New Issue
Block a user