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

airborne 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 beab6a81c14 [fix] (compaction) fix time series compaction policy 
(#39170) (#39228)
beab6a81c14 is described below

commit beab6a81c148cee50ac98ba09204a3e3d66cf946
Author: Sun Chenyang <[email protected]>
AuthorDate: Tue Aug 13 10:33:04 2024 +0800

    [fix] (compaction) fix time series compaction policy (#39170) (#39228)
    
    ## Proposed changes
    
    pick from master #39170
---
 be/src/olap/tablet.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/be/src/olap/tablet.cpp b/be/src/olap/tablet.cpp
index 79405b1fe0b..ecfc52db6b6 100644
--- a/be/src/olap/tablet.cpp
+++ b/be/src/olap/tablet.cpp
@@ -2010,6 +2010,9 @@ Status 
Tablet::prepare_compaction_and_calculate_permits(CompactionType compactio
         for (auto&& rowset : compaction->input_rowsets()) {
             permits += rowset->rowset_meta()->get_compaction_score();
         }
+    } else {
+        // permits = 0 means that prepare_compaction failed
+        permits = 1;
     }
     return Status::OK();
 }


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

Reply via email to