Commit Graph

111 Commits

Author SHA1 Message Date
Azat Khuzhin
f157278b72 Safer SCOPE_EXIT
It executes the code in the dtor, that should never throw.
2021-04-06 21:10:37 +03:00
Azat Khuzhin
e858dae187 Fix SIGSEGV for distributed queries on failures
Since after pull(), cancel() will be called, and this will lead to
SIGSEGV, since there is no exception, but has_exception was not reseted
in pull()
2021-03-04 00:42:49 +03:00
Pavel Kruglov
153bfbfc28 Merge branch 'master' of github.com:ClickHouse/ClickHouse into hedged-requests 2021-03-02 11:59:32 +03:00
Nikolai Kochetov
f63d7b45ce Merge branch 'master' into fix-number-of-threads-in-subqueries 2021-02-26 11:15:03 +03:00
Nikolai Kochetov
6f5d4ba8cd Fix tests. 2021-02-25 00:31:15 +03:00
Nikolai Kochetov
aa8632a1bc Fix tests. 2021-02-25 00:27:47 +03:00
Nikolai Kochetov
d966725f33 Try fix hung in void PullingAsyncPipelineExecutor::cancel() 2021-02-24 17:10:35 +03:00
Kruglov Pavel
815b4ff0d9
Merge branch 'master' into hedged-requests 2021-02-21 17:10:24 +03:00
Nikolai Kochetov
2f67cc02c1
Merge pull request #20881 from azat/async-task-queue-wait-fix
Fix 'Empty task was returned from async task queue' on query cancellation
2021-02-20 10:56:04 +03:00
Nikolai Kochetov
d438d7e390 Fix timeout in epoll_wait for PollingQueue 2021-02-19 12:07:34 +03:00
Nikolai Kochetov
b9d6df9618 Check for eintr in epoll_wait 2021-02-19 11:49:41 +03:00
Azat Khuzhin
9c01869090 Fix 'Empty task was returned from async task queue' on query cancellation 2021-02-18 22:15:21 +03:00
Nikolai Kochetov
a72ef6f026 Fix number of threads for scalar subqueries and subqueries for index. 2021-02-16 11:26:24 +03:00
Pavel Kruglov
794f185442 Fix 2021-02-06 17:23:48 +03:00
Pavel Kruglov
25e85d71ee Merge branch 'master' of github.com:ClickHouse/ClickHouse into hedged-requests 2021-01-29 21:08:47 +03:00
feng lv
beb0fec8bb mirror changes in code and comment 2021-01-22 09:13:22 +00:00
Pavel Kruglov
97b5179e55 Implement HedgedRequests 2021-01-19 22:41:05 +03:00
Nikolai Kochetov
1f2a90d321 Remove debug code. 2021-01-12 21:41:11 +03:00
Nikolai Kochetov
af79c6ca9b Remove debug code. 2021-01-12 21:40:07 +03:00
Nikolai Kochetov
0aad1de330 Try fix Task was not found in task queue 2021-01-12 18:20:56 +03:00
Nikolai Kochetov
3b95ee8e60 Print log in case of exception in PollingQueue 2021-01-12 16:12:14 +03:00
Nikolai Kochetov
24503267d5 Print log in case of exception in PollingQueue 2021-01-12 15:42:18 +03:00
Nikolai Kochetov
c61e9a655a Print log in case of exception in PollingQueue 2021-01-12 13:01:19 +03:00
Nikolai Kochetov
ec70d7961b Try fix build. 2021-01-11 17:01:32 +03:00
Nikolai Kochetov
45b28a6374 Add more debug info to PollingQueue exception. 2021-01-11 13:09:40 +03:00
Nikolai Kochetov
496690896c Add more debug info to PollingQueue exception. 2021-01-11 12:08:13 +03:00
Nikolai Kochetov
bc0e91b586 Fix special build 2020-12-21 12:23:23 +03:00
Nikolai Kochetov
855c4bc7d7 Added comments. 2020-12-18 18:12:31 +03:00
Nikolai Kochetov
bf9c945ce2 Try to fix ubsan crash. 2020-12-17 10:27:54 +03:00
Nikolai Kochetov
263aa88cd9 Fixing tests. 2020-12-16 23:27:31 +03:00
Nikolai Kochetov
5277b565a8 Fixing build. 2020-12-15 17:47:31 +03:00
Nikolai Kochetov
24c390eb49 Fixing tests. 2020-12-15 15:07:31 +03:00
Nikolai Kochetov
db9ad80168 Fixing tests. 2020-12-14 19:16:08 +03:00
Nikolai Kochetov
75ac87c241 Fixing build. 2020-12-14 17:42:12 +03:00
Nikolai Kochetov
e295dfe6e3 Use ucontext for asan 2020-12-14 17:42:08 +03:00
Nikolai Kochetov
32b38f389e Merge branch 'master' into async-read-from-socket 2020-12-09 17:15:36 +03:00
Nikolai Kochetov
a1d4d92b54 Use poco from master. Fixing tests. 2020-12-09 17:12:42 +03:00
Nikolai Kochetov
e8667bad45 Fix build and tests. 2020-12-09 17:12:27 +03:00
Nikolai Kochetov
6a8384e6a4 Use same thread for async task continuation. 2020-12-09 17:12:21 +03:00
Nikolai Kochetov
156f44808f Fixing crash. 2020-12-09 17:11:45 +03:00
Nikolai Kochetov
00492eec67 Support of Async status for PipelineExecutor. 2020-12-04 12:55:27 +03:00
Nikolai Kochetov
92d60a7f38 Add AsyncTaskQueue. 2020-12-03 20:03:13 +03:00
Azat Khuzhin
afabad975b Make PullingAsyncPipelineExecutor thread safe
Right now if CurrentThread::attachTo() throws, it will not catch it.
2020-11-28 11:15:26 +03:00
Nikolai Kochetov
1c8600bb0a Fix data race on global BlockStreamProfileInfo in PullingAsyncPipelineExecutor. 2020-11-27 16:50:34 +03:00
Alexander Kuzmenkov
6cb378e072 cleanup 2020-11-19 18:52:11 +03:00
Alexander Kuzmenkov
26229ed231 tmp spans for threads
(doesn't compile because of json metadata changes)
2020-11-09 18:07:38 +03:00
Azat Khuzhin
9594e463b4
Cancel other processors on query exception (#15578)
* Add a test for canceling distributed queries on error

* Cancel other processors on exception in PipelineExecutor

Fixes: 01514_distributed_cancel_query_on_error
2020-10-06 14:24:55 +03:00
Nikolai Kochetov
6eac433c55 Review fixes. 2020-09-15 13:40:39 +03:00
Nikolai Kochetov
bcfc83022a Return query plan from storage. 2020-09-14 17:13:58 +03:00
Nikolai Kochetov
7f88e3de1f Review fix. 2020-09-04 15:54:31 +03:00