Skip to content

[fix](compaction) Avoid repeatedly compacting large cumulative rowset#64954

Open
Yukang-Lian wants to merge 1 commit into
apache:masterfrom
Yukang-Lian:codex/cumulative-compaction-policy-master
Open

[fix](compaction) Avoid repeatedly compacting large cumulative rowset#64954
Yukang-Lian wants to merge 1 commit into
apache:masterfrom
Yukang-Lian:codex/cumulative-compaction-policy-master

Conversation

@Yukang-Lian

@Yukang-Lian Yukang-Lian commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Proposed changes

  • Remove the promotion-size early return in size-based cumulative compaction rowset selection so level-size trimming can exclude an oversized leading rowset.
  • Keep the level-size trimming loop from trimming a single candidate rowset to an empty input set.
  • Apply the same behavior to both cloud and storage cumulative compaction policies.
  • Add regression coverage for the large-head/small-tail case and the single-rowset guard in both paths.

@hello-stephen

Copy link
Copy Markdown
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants