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 afd440fea7a2eb5611f4504e3338b9fe1ed82b82 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