Skip to content

Commit

Permalink
[Fix](regressiontest) fix the p2 pipeline hang in multi stream sender
Browse files Browse the repository at this point in the history
  • Loading branch information
HappenLee committed Jul 17, 2023
1 parent 83e5a29 commit 3e53d2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion be/src/pipeline/exec/operator.h
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ class DataSinkOperator : public OperatorBase {

Status sink(RuntimeState* state, vectorized::Block* in_block,
SourceState source_state) override {
if (in_block->rows() > 0) {
if (in_block->rows() > 0 || source_state == SourceState::FINISHED) {
auto st = _sink->send(state, in_block, source_state == SourceState::FINISHED);
// TODO: improvement: if sink returned END_OF_FILE, pipeline task can be finished
if (st.template is<ErrorCode::END_OF_FILE>()) {
Expand Down

0 comments on commit 3e53d2e

Please sign in to comment.