This is an automated email from the ASF dual-hosted git repository.
airborne pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new f3d0276d69c [fix] (compaction) fix time series compaction policy
(#39170) (#39227)
f3d0276d69c is described below
commit f3d0276d69c05861ca47c516059ba5076486f8b6
Author: Sun Chenyang <[email protected]>
AuthorDate: Tue Aug 13 10:32:50 2024 +0800
[fix] (compaction) fix time series compaction policy (#39170) (#39227)
## 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 ec8689fb3ff..8a4a510f4c6 100644
--- a/be/src/olap/tablet.cpp
+++ b/be/src/olap/tablet.cpp
@@ -1993,6 +1993,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]