This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new c2b46e4df71 [fix](move-memtable) exclude rpc memory in flush
mem-tracker (#24722)
c2b46e4df71 is described below
commit c2b46e4df71e4b7ac25e8020bf107049a602f70f
Author: Kaijie Chen <[email protected]>
AuthorDate: Thu Oct 5 22:10:53 2023 +0800
[fix](move-memtable) exclude rpc memory in flush mem-tracker (#24722)
---
be/src/vec/sink/load_stream_stub.cpp | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/be/src/vec/sink/load_stream_stub.cpp
b/be/src/vec/sink/load_stream_stub.cpp
index 052aa1f256b..c36756cc95d 100644
--- a/be/src/vec/sink/load_stream_stub.cpp
+++ b/be/src/vec/sink/load_stream_stub.cpp
@@ -234,7 +234,11 @@ Status LoadStreamStub::_send_with_buffer(butil::IOBuf&
buf, bool eos) {
Status LoadStreamStub::_send_with_retry(butil::IOBuf& buf) {
for (;;) {
- int ret = brpc::StreamWrite(_stream_id, buf);
+ int ret;
+ {
+
SCOPED_SWITCH_THREAD_MEM_TRACKER_LIMITER(ExecEnv::GetInstance()->orphan_mem_tracker());
+ ret = brpc::StreamWrite(_stream_id, buf);
+ }
switch (ret) {
case 0:
return Status::OK();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]