You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2024/01/25 05:25:38 UTC
(doris) 23/37: [improve](streamload) do not print stack trace when get data from pipe meet cancel (#30297)
This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git
commit 15728756e226be8c1910f03cbbcf519cc0fbdaff
Author: HHoflittlefish777 <77...@users.noreply.github.com>
AuthorDate: Wed Jan 24 21:51:09 2024 +0800
[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 3e2f6bdf3ea..014d1240c5c 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<false>("cancelled: {}", _cancelled_reason);
}
// finished
if (_buf_queue.empty()) {
@@ -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()) {
@@ -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) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org