mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Fix 00613_shard_distributed_max_execution_time flakyness
This commit is contained in:
parent
cbe3a47f2f
commit
15dc86bd37
@ -142,6 +142,8 @@ bool PipelineExecutor::checkTimeLimit()
|
||||
throw Exception("Query was cancelled", ErrorCodes::QUERY_WAS_CANCELLED);
|
||||
|
||||
bool cont = limits.checkTimeLimit(process_list_element->watch, overflow_mode);
|
||||
// We call cancel here so that all processors are notified and tasks waken up
|
||||
// so that the "break" is faster and doesn't wait for long events
|
||||
if (!cont)
|
||||
cancel();
|
||||
return cont;
|
||||
|
@ -1,10 +0,0 @@
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
@ -1,4 +1,4 @@
|
||||
-- Tags: distributed
|
||||
|
||||
SET max_execution_time = 1, timeout_overflow_mode = 'break';
|
||||
SELECT DISTINCT * FROM remote('127.0.0.{2,3}', system.numbers) WHERE number < 10;
|
||||
SELECT * FROM remote('127.0.0.{2,3}', system.numbers) WHERE number < 10 FORMAT Null;
|
||||
|
Loading…
Reference in New Issue
Block a user