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 6c279262303 branch-3.0: [fix](compaction) skip tablets with compaction 
score 0 during compaction #55550 (#55569)
6c279262303 is described below

commit 6c279262303b0ebfe1ad8ab420eb51bea7d74a3e
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Sep 4 14:21:55 2025 +0800

    branch-3.0: [fix](compaction) skip tablets with compaction score 0 during 
compaction #55550 (#55569)
    
    Cherry-picked from #55550
    
    Co-authored-by: Luwei <[email protected]>
---
 be/src/olap/tablet_manager.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/be/src/olap/tablet_manager.cpp b/be/src/olap/tablet_manager.cpp
index b6b2d3b2293..556ef14076b 100644
--- a/be/src/olap/tablet_manager.cpp
+++ b/be/src/olap/tablet_manager.cpp
@@ -804,6 +804,10 @@ std::vector<TabletSharedPtr> 
TabletManager::find_best_tablets_to_compaction(
             tablet_ptr->set_skip_compaction(true, compaction_type, 
UnixSeconds());
         }
 
+        if (current_compaction_score <= 0) {
+            return;
+        }
+
         // tablet should do single compaction
         if (current_compaction_score > single_compact_highest_score &&
             tablet_ptr->should_fetch_from_peer()) {


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

Reply via email to