This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push:
new 9664b50eb61 [improve](load) do not block delta writer if memtable
memory is low (#42649) (#44305)
9664b50eb61 is described below
commit 9664b50eb61515510f9fe8a1acda7e1ab7349221
Author: Kaijie Chen <[email protected]>
AuthorDate: Thu Nov 21 11:17:35 2024 +0800
[improve](load) do not block delta writer if memtable memory is low
(#42649) (#44305)
backport #42649
---
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 23b760284b8..b13d9687ee6 100644
--- a/be/src/olap/memtable_memory_limiter.cpp
+++ b/be/src/olap/memtable_memory_limiter.cpp
@@ -123,7 +123,7 @@ void MemTableMemoryLimiter::handle_memtable_flush() {
_write_mem_usage * config::memtable_hard_limit_active_percent /
100) {
_flush_active_memtables(_write_mem_usage / 20);
}
- if (!_hard_limit_reached()) {
+ if (!_hard_limit_reached() || _load_usage_low()) {
break;
}
auto st = _hard_limit_end_cond.wait_for(l,
std::chrono::milliseconds(1000));
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]