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 3a0bef972b6 branch-3.1: [fix](compaction) skip tablets with compaction 
score 0 during compaction #55550 (#55570)
3a0bef972b6 is described below

commit 3a0bef972b6d4ae6dd29cc68f89a8dad1b955619
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Sep 4 10:37:22 2025 +0800

    branch-3.1: [fix](compaction) skip tablets with compaction score 0 during 
compaction #55550 (#55570)
    
    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 7e40b0e4cbe..727b259a13b 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