yiguolei commented on code in PR #40270: URL: https://github.com/apache/doris/pull/40270#discussion_r1756226243
########## be/src/pipeline/pipeline_x/pipeline_x_fragment_context.cpp: ########## @@ -693,6 +701,36 @@ Status PipelineXFragmentContext::_build_pipeline_tasks( std::lock_guard<std::mutex> l(_state_map_lock); _runtime_filter_mgr_map[fragment_instance_id] = std::move(runtime_filter_mgr); } + return Status::OK(); + }; + if (target_size > 1) { + Status prepare_status[target_size]; + std::mutex m; + std::condition_variable cv; + int prepare_done = 0; + for (size_t i = 0; i < target_size; i++) { + RETURN_IF_ERROR(thread_pool->submit_func([&, i]() { + SCOPED_ATTACH_TASK(_query_ctx.get()); Review Comment: 这里估计也容易挂,比如外面的wait 超时了,假如退出wait,那么这里的对象可能都不在了,此时继续运行就跪了。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org