yiguolei commented on code in PR #60812:
URL: https://github.com/apache/doris/pull/60812#discussion_r2882399076
##########
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) {
Review Comment:
1. recurcive cte --> coordinator --> rerun(light weight thread pool) --->
queue(fragment --> close listenner)
2. recurcive cte --> coordinator - rpc 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: [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]