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 61acb985d5e branch-3.0: [fix](group commit) add bvar for group commit
block by memory counter #51851 (#52008)
61acb985d5e is described below
commit 61acb985d5edefcbf8a6d5248eb639938de7b4be
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Jun 23 22:00:13 2025 +0800
branch-3.0: [fix](group commit) add bvar for group commit block by memory
counter #51851 (#52008)
Cherry-picked from #51851
Co-authored-by: meiyi <[email protected]>
---
be/src/runtime/group_commit_mgr.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/be/src/runtime/group_commit_mgr.cpp
b/be/src/runtime/group_commit_mgr.cpp
index 70345acdfb7..553da51a96b 100644
--- a/be/src/runtime/group_commit_mgr.cpp
+++ b/be/src/runtime/group_commit_mgr.cpp
@@ -35,6 +35,8 @@
namespace doris {
+bvar::Adder<uint64_t>
group_commit_block_by_memory_counter("group_commit_block_by_memory_counter");
+
std::string LoadBlockQueue::_get_load_ids() {
std::stringstream ss;
ss << "[";
@@ -80,6 +82,7 @@ Status LoadBlockQueue::add_block(RuntimeState* runtime_state,
if (!runtime_state->is_cancelled() && status.ok() &&
_all_block_queues_bytes->load(std::memory_order_relaxed) >=
config::group_commit_queue_mem_limit) {
+ group_commit_block_by_memory_counter << 1;
DCHECK(_load_ids_to_write_dep.find(load_id) !=
_load_ids_to_write_dep.end());
_load_ids_to_write_dep[load_id]->block();
VLOG_DEBUG << "block add_block for load_id=" << load_id
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]