This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new dd3595aa94f branch-3.0: [fix](move-memtable) gracefully shutdown flush
token in TabletStream::pre_close #52719 (#52779)
dd3595aa94f is described below
commit dd3595aa94f5ac12b73a6af9eb659e0db49f781a
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Jul 7 14:48:22 2025 +0800
branch-3.0: [fix](move-memtable) gracefully shutdown flush token in
TabletStream::pre_close #52719 (#52779)
Cherry-picked from #52719
Co-authored-by: Kaijie Chen <[email protected]>
---
be/src/runtime/load_stream.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/be/src/runtime/load_stream.cpp b/be/src/runtime/load_stream.cpp
index 1a386341f89..42db372c170 100644
--- a/be/src/runtime/load_stream.cpp
+++ b/be/src/runtime/load_stream.cpp
@@ -296,6 +296,8 @@ Status
TabletStream::_run_in_heavy_work_pool(std::function<Status()> fn) {
void TabletStream::pre_close() {
if (!_status.ok()) {
+ // cancel all pending tasks, wait all running tasks to finish
+ _flush_token->shutdown();
return;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]