Skip to content

Commit 191371d

Browse files
authored
[fix] (compaction) fix time series compaction policy (#39170)
## Proposed changes Fix the issue introduced by #38220 ### BUG The permits requested for compaction cannot be 0, 0 indicates failure.
1 parent d91a7ad commit 191371d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

be/src/olap/tablet.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1723,7 +1723,8 @@ Status Tablet::prepare_compaction_and_calculate_permits(
17231723

17241724
// Time series policy does not rely on permits, it uses goal size to control memory
17251725
if (tablet->tablet_meta()->compaction_policy() == CUMULATIVE_TIME_SERIES_POLICY) {
1726-
permits = 0;
1726+
// permits = 0 means that prepare_compaction failed
1727+
permits = 1;
17271728
} else {
17281729
permits = compaction->get_compaction_permits();
17291730
}

0 commit comments

Comments
 (0)