Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
yiguolei committed Dec 17, 2024
1 parent 6282656 commit c2793bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions be/src/vec/sink/vdata_stream_sender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ Status Channel::open(RuntimeState* state) {
if (!st.ok()) {
// If could not find local receiver, then it means the channel is EOF.
// Maybe downstream task is finished already.
if (_receiver_status.ok()) {
_receiver_status = Status::EndOfFile("local data stream receiver is deconstructed");
}
//if (_receiver_status.ok()) {
// _receiver_status = Status::EndOfFile("local data stream receiver is deconstructed");
//}
LOG(INFO) << "Query: " << print_id(state->query_id())
<< " recvr is not found, maybe downstream task is finished. error st is: "
<< st.to_string();
Expand Down Expand Up @@ -204,7 +204,7 @@ Status Channel::send_local_block(Block* block, bool eos, bool can_be_moved) {
// but it only owns a raw pointer, so that the ExchangeLocalState object may be deconstructed.
// Lock the fragment context to ensure the runtime state and other objects are not deconstructed
TaskExecutionContextSPtr ctx_lock = nullptr;
if (receiver_status.ok()) {
if (receiver_status.ok() && _local_recvr != nullptr) {
ctx_lock = _local_recvr->task_exec_ctx();
// Do not return internal error, because when query finished, the downstream node
// may finish before upstream node. And the object maybe deconstructed. If return error
Expand Down

0 comments on commit c2793bc

Please sign in to comment.