This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.0 by this push:
new c2b8f8a3e58 branch-4.0: [fix](error) Avoid deadlock if task status is
unexpected #56816 (#56845)
c2b8f8a3e58 is described below
commit c2b8f8a3e58e49bc658ba1e2990de26880e39a28
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sun Oct 12 11:55:03 2025 +0800
branch-4.0: [fix](error) Avoid deadlock if task status is unexpected #56816
(#56845)
Cherry-picked from #56816
Co-authored-by: Gabriel <[email protected]>
---
be/src/pipeline/pipeline_task.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/be/src/pipeline/pipeline_task.cpp
b/be/src/pipeline/pipeline_task.cpp
index 5a86dd2626a..444d48e914a 100644
--- a/be/src/pipeline/pipeline_task.cpp
+++ b/be/src/pipeline/pipeline_task.cpp
@@ -671,8 +671,8 @@ Status PipelineTask::finalize() {
return Status::OK();
}
SCOPED_SWITCH_THREAD_MEM_TRACKER_LIMITER(fragment->get_query_ctx()->query_mem_tracker());
- std::unique_lock<std::mutex> lc(_dependency_lock);
RETURN_IF_ERROR(_state_transition(State::FINALIZED));
+ std::unique_lock<std::mutex> lc(_dependency_lock);
_sink_shared_state.reset();
_op_shared_states.clear();
_shared_state_map.clear();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]