Skip to content

Commit

Permalink
[improve](streamload) do not print stack trace when get data from pip…
Browse files Browse the repository at this point in the history
…e meet cancel (apache#30297)
  • Loading branch information
sollhui authored Jan 24, 2024
1 parent 26d6855 commit b24fe86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions be/src/io/fs/stream_load_pipe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Status StreamLoadPipe::read_at_impl(size_t /*offset*/, Slice result, size_t* byt
}
// cancelled
if (_cancelled) {
return Status::InternalError("cancelled: {}", _cancelled_reason);
return Status::InternalError<false>("cancelled: {}", _cancelled_reason);
}
// finished
if (_buf_queue.empty()) {
Expand Down Expand Up @@ -168,7 +168,7 @@ Status StreamLoadPipe::_read_next_buffer(std::unique_ptr<uint8_t[]>* data, size_
}
// cancelled
if (_cancelled) {
return Status::InternalError("cancelled: {}", _cancelled_reason);
return Status::InternalError<false>("cancelled: {}", _cancelled_reason);
}
// finished
if (_buf_queue.empty()) {
Expand Down Expand Up @@ -210,7 +210,7 @@ Status StreamLoadPipe::_append(const ByteBufferPtr& buf, size_t proto_byte_size)
}
}
if (_cancelled) {
return Status::InternalError("cancelled: {}", _cancelled_reason);
return Status::InternalError<false>("cancelled: {}", _cancelled_reason);
}
_buf_queue.push_back(buf);
if (_use_proto) {
Expand Down

0 comments on commit b24fe86

Please sign in to comment.