Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions be/src/olap/cumulative_compaction_policy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,10 @@ void CumulativeCompactionPolicy::pick_candidate_rowsets(
int64_t now = UnixSeconds();
for (auto& it : rs_version_map) {
// find all rowset version greater than cumulative_point and skip the create time in skip_window_sec
if (it.first.first >= cumulative_point &&
(it.second->creation_time() + skip_window_sec < now)) {
if (it.first.first >= cumulative_point
&& ((it.second->creation_time() + skip_window_sec < now)
// this case means a rowset has been compacted before which is not a new published rowset, so it should participate compaction
|| (it.first.first != it.first.second))) {
candidate_rowsets->push_back(it.second);
}
}
Expand Down