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 a79b297064b [fix] (compaction) fix time series compaction policy
(#39170) (#39176)
a79b297064b is described below
commit a79b297064b9451803ea8ceaf52fe2852b3c415c
Author: Sun Chenyang <[email protected]>
AuthorDate: Sat Aug 10 13:33:04 2024 +0800
[fix] (compaction) fix time series compaction policy (#39170) (#39176)
## Proposed changes
pick from master #39170
Issue Number: close #xxx
<!--Describe your changes.-->
---
be/src/olap/tablet.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/be/src/olap/tablet.cpp b/be/src/olap/tablet.cpp
index f159dc6f576..0063be19f9c 100644
--- a/be/src/olap/tablet.cpp
+++ b/be/src/olap/tablet.cpp
@@ -1715,7 +1715,8 @@ Status Tablet::prepare_compaction_and_calculate_permits(
// Time series policy does not rely on permits, it uses goal size to
control memory
if (tablet->tablet_meta()->compaction_policy() ==
CUMULATIVE_TIME_SERIES_POLICY) {
- permits = 0;
+ // permits = 0 means that prepare_compaction failed
+ permits = 1;
} else {
permits = compaction->get_compaction_permits();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]