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

lide 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 393cb00174f [fix](metrics) max_compaction_score metrics do not update 
while compaction_num_per_round > 1 (#48383)
393cb00174f is described below

commit 393cb00174f7b2118915170f927a363ac1ba9abb
Author: camby <camby...@tencent.com>
AuthorDate: Thu Feb 27 11:07:15 2025 +0800

    [fix](metrics) max_compaction_score metrics do not update while 
compaction_num_per_round > 1 (#48383)
    
    refer to #46160
---
 be/src/olap/tablet_manager.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/olap/tablet_manager.cpp b/be/src/olap/tablet_manager.cpp
index 7f9ab2aad4c..3a7aa303b2f 100644
--- a/be/src/olap/tablet_manager.cpp
+++ b/be/src/olap/tablet_manager.cpp
@@ -837,7 +837,6 @@ std::vector<TabletSharedPtr> 
TabletManager::find_best_tablets_to_compaction(
                       << ", compaction_score=" << compaction_score
                       << ", highest_score=" << highest_score;
         picked_tablet.emplace_back(std::move(best_tablet));
-        *score = compaction_score;
     }
 
     std::vector<TabletSharedPtr> reverse_top_tablets;
@@ -850,6 +849,7 @@ std::vector<TabletSharedPtr> 
TabletManager::find_best_tablets_to_compaction(
         picked_tablet.emplace_back(*it);
     }
 
+    *score = highest_score;
     return picked_tablet;
 }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to