Skip to content

Commit

Permalink
deal with rf
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangstar333 committed Feb 2, 2024
1 parent 2dc7af8 commit 5ba759b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions be/src/pipeline/pipeline_task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,10 @@ Status PipelineTask::execute(bool* eos) {
if (!_opened) {
{
SCOPED_RAW_TIMER(&time_spent);
if (!_open_status.ok()) {
// if _open_status is not ok, could know have execute open function,
// now execute open again, so need excluding PIP_WAIT_FOR_RF and PIP_WAIT_FOR_SC error out.
if (!_open_status.ok() && !_open_status.is<ErrorCode::PIP_WAIT_FOR_RF>() &&
!_open_status.is<ErrorCode::PIP_WAIT_FOR_SC>()) {
return _open_status;
}
// here execute open and not check dependency(eg: the second start rpc arrival)
Expand All @@ -251,7 +254,7 @@ Status PipelineTask::execute(bool* eos) {
set_state(PipelineTaskState::BLOCKED_FOR_DEPENDENCY);
return Status::OK();
}
// not ok and no dependency, return error to cancel.
// if not ok and no dependency, return error to cancel.
RETURN_IF_ERROR(_open_status);
}
if (has_dependency()) {
Expand Down

0 comments on commit 5ba759b

Please sign in to comment.