This is an automated email from the ASF dual-hosted git repository.

morrysnow pushed a commit to branch branch-3.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-3.1 by this push:
     new 1fc554c8b69 branch-3.1: [improve](load) do not block delta writer if 
memtable memory is low #42649 (#54665)
1fc554c8b69 is described below

commit 1fc554c8b696dd1316aafb5b6b78321ab73faa86
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Aug 14 11:54:08 2025 +0800

    branch-3.1: [improve](load) do not block delta writer if memtable memory is 
low #42649 (#54665)
    
    Cherry-picked from #42649
    
    Co-authored-by: Kaijie Chen <[email protected]>
---
 be/src/olap/memtable_memory_limiter.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/olap/memtable_memory_limiter.cpp 
b/be/src/olap/memtable_memory_limiter.cpp
index 8eeecbe066f..35700aa36d6 100644
--- a/be/src/olap/memtable_memory_limiter.cpp
+++ b/be/src/olap/memtable_memory_limiter.cpp
@@ -156,7 +156,7 @@ void MemTableMemoryLimiter::handle_memtable_flush() {
                       << ", need flush: " << 
PrettyPrinter::print_bytes(need_flush);
             _flush_active_memtables(need_flush);
         }
-    } while (_hard_limit_reached());
+    } while (_hard_limit_reached() && !_load_usage_low());
     g_memtable_memory_limit_waiting_threads << -1;
     timer.stop();
     int64_t time_ms = timer.elapsed_time() / 1000 / 1000;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to