xinyiZzz commented on code in PR #47784: URL: https://github.com/apache/doris/pull/47784#discussion_r1952049001
########## be/src/runtime/runtime_query_statistics_mgr.cpp: ########## @@ -466,73 +450,56 @@ void RuntimeQueryStatisticsMgr::report_runtime_query_statistics() { void RuntimeQueryStatisticsMgr::set_query_finished(std::string query_id) { // NOTE: here must be a write lock - std::lock_guard<std::shared_mutex> write_lock(_qs_ctx_map_lock); + std::lock_guard<std::shared_mutex> write_lock(_resource_contexts_map_lock); // when a query get query_ctx succ, but failed before create node/operator, - // it may not register query statistics, so it can not be mark finish Review Comment: 是的 -- 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