From 15728756e226be8c1910f03cbbcf519cc0fbdaff Mon Sep 17 00:00:00 2001 From: HHoflittlefish777 <77738092+HHoflittlefish777@users.noreply.github.com> Date: Wed, 24 Jan 2024 21:51:09 +0800 Subject: [PATCH] [improve](streamload) do not print stack trace when get data from pipe meet cancel (#30297) --- be/src/io/fs/stream_load_pipe.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/be/src/io/fs/stream_load_pipe.cpp b/be/src/io/fs/stream_load_pipe.cpp index 3e2f6bdf3e..014d1240c5 100644 --- a/be/src/io/fs/stream_load_pipe.cpp +++ b/be/src/io/fs/stream_load_pipe.cpp @@ -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("cancelled: {}", _cancelled_reason); } // finished if (_buf_queue.empty()) { @@ -168,7 +168,7 @@ Status StreamLoadPipe::_read_next_buffer(std::unique_ptr* data, size_ } // cancelled if (_cancelled) { - return Status::InternalError("cancelled: {}", _cancelled_reason); + return Status::InternalError("cancelled: {}", _cancelled_reason); } // finished if (_buf_queue.empty()) { @@ -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("cancelled: {}", _cancelled_reason); } _buf_queue.push_back(buf); if (_use_proto) {