Stop query execution if exception happened in PipelineExecutor itself.

This commit is contained in:
Nikolai Kochetov 2020-09-01 13:29:10 +03:00
parent ebbdaf41aa
commit 8fac595428

View File

@ -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];