mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 01:22:04 +00:00
Stop query execution if exception happened in PipelineExecutor itself.
This commit is contained in:
parent
ebbdaf41aa
commit
8fac595428
@ -469,7 +469,16 @@ void PipelineExecutor::wakeUpExecutor(size_t thread_num)
|
||||
|
||||
void PipelineExecutor::executeSingleThread(size_t thread_num, size_t num_threads)
|
||||
{
|
||||
executeStepImpl(thread_num, num_threads);
|
||||
try
|
||||
{
|
||||
executeStepImpl(thread_num, num_threads);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
/// In case of exception from executor itself, stop other threads.
|
||||
finish();
|
||||
throw;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
auto & context = executor_contexts[thread_num];
|
||||
|
Loading…
Reference in New Issue
Block a user