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 3ba5d876138 branch-3.1: [fix](group commit) add bvar for group commit
block by memory counter #51851 (#52009)
3ba5d876138 is described below
commit 3ba5d876138824b47b9fb175936c8adeec60b209
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Jun 20 13:31:29 2025 +0800
branch-3.1: [fix](group commit) add bvar for group commit block by memory
counter #51851 (#52009)
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]