yiguolei commented on code in PR #60812:
URL: https://github.com/apache/doris/pull/60812#discussion_r2882362763
##########
be/src/runtime/fragment_mgr.cpp:
##########
@@ -1463,33 +1473,105 @@ Status FragmentMgr::transmit_rec_cte_block(
Status FragmentMgr::rerun_fragment(const TUniqueId& query_id, int fragment,
PRerunFragmentParams_Opcode stage) {
- if (auto q_ctx = get_query_ctx(query_id)) {
+ if (stage == PRerunFragmentParams::wait_for_close) {
+ // Wait for all PipelineTasks to close, but do NOT send report or
remove PFC from map.
+ // This ensures tasks have finished before we proceed to destroy the
PFC.
+ auto fragment_ctx = _pipeline_map.find({query_id, fragment});
+ if (!fragment_ctx) {
+ return Status::NotFound("Fragment context (query-id: {},
fragment-id: {}) not found",
+ print_id(query_id), fragment);
+ }
+ SCOPED_ATTACH_TASK(fragment_ctx->get_query_ctx());
+ RETURN_IF_ERROR(fragment_ctx->wait_close(false));
Review Comment:
wait close 是一直卡在这吗?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]