yiguolei commented on code in PR #39223:
URL: https://github.com/apache/doris/pull/39223#discussion_r1716223940
##########
be/src/runtime/fragment_mgr.cpp:
##########
@@ -878,55 +990,94 @@ void FragmentMgr::cancel_worker() {
"starting? "
<< "We will not cancel any outdated queries in this
situation.";
} else {
- for (const auto& it : _query_ctx_map) {
- if (auto q_ctx = it.second.lock()) {
- if (q_ctx->get_fe_process_uuid() == 0) {
- // zero means this query is from a older version
fe or
- // this fe is starting
- continue;
- }
-
Review Comment:
if (fe_to_queryuid.contains(q_Ctx.feuid) &&
!fe_to_queryuid.get(q_ctx.feuid).contains(q_ctx.query_uid)) {
pipeline_task_leak_list.push_back(q_ctx);
continue;
}
--
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]