Skip to content

Commit

Permalink
simple fix for cancel core block dep is released when call
Browse files Browse the repository at this point in the history
  • Loading branch information
Doris-Extras committed May 15, 2024
1 parent e4b9ded commit 4ba15b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions be/src/pipeline/pipeline_x/pipeline_x_task.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ class PipelineXTask : public PipelineTask {
int task_id() const { return _index; };

void clear_blocking_state() {
// Another thread may call finalize to release all dependencies
// And then it will core.
std::unique_lock<std::mutex> lc(_release_lock);
if (!_finished && get_state() != PipelineTaskState::PENDING_FINISH && _blocked_dep) {
_blocked_dep->set_ready();
_blocked_dep = nullptr;
Expand Down

0 comments on commit 4ba15b2

Please sign in to comment.