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 ae0220217ba [fix](move-memtable) only do close wait on the last sink 
(#30098)
ae0220217ba is described below

commit ae0220217ba4f3492f6a594a6a0131c768fc3c99
Author: Kaijie Chen <c...@apache.org>
AuthorDate: Fri Jan 19 14:52:03 2024 +0800

    [fix](move-memtable) only do close wait on the last sink (#30098)
---
 be/src/vec/sink/load_stream_stub.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/be/src/vec/sink/load_stream_stub.cpp 
b/be/src/vec/sink/load_stream_stub.cpp
index 347acb1b6f6..c4b10162299 100644
--- a/be/src/vec/sink/load_stream_stub.cpp
+++ b/be/src/vec/sink/load_stream_stub.cpp
@@ -316,6 +316,10 @@ Status LoadStreamStub::close_wait(int64_t timeout_ms) {
     if (_is_closed.load()) {
         return _check_cancel();
     }
+    // if there are other sinks remaining, let the last sink handle close wait
+    if (_use_cnt > 0) {
+        return Status::OK();
+    }
     if (timeout_ms <= 0) {
         timeout_ms = config::close_load_stream_timeout_ms;
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to