Skip to content

Conversation

@devanbenz
Copy link

  • feat: Modify optimized compaction to cover edge cases This PR changes the algorithm for compaction to account for the following cases that were not previously accounted for:
  • Many generations with a groupsize over 2 GB
  • Single generation with many files and a groupsize under 2 GB
  • Where groupsize is the total size of the TSM files in said shard directory.
  • shards that may have over a 2 GB group size but many fragmented files (under 2 GB and under aggressive point per block count)

closes #25666

(cherry picked from commit f04105b)

* feat: Modify optimized compaction to cover edge cases
This PR changes the algorithm for compaction to account for the following
cases that were not previously accounted for:

- Many generations with a groupsize over 2 GB
- Single generation with many files and a groupsize under 2 GB
- Where groupsize is the total size of the TSM files in said shard directory.
- shards that may have over a 2 GB group size but
many fragmented files (under 2 GB and under aggressive
point per block count)

closes #25666

(cherry picked from commit f04105b)
@devanbenz devanbenz self-assigned this Jan 21, 2026
@devanbenz devanbenz added area/tsm kind/bug area/2.x OSS 2.0 related issues and PRs labels Jan 21, 2026
@devanbenz devanbenz linked an issue Jan 21, 2026 that may be closed by this pull request
@devanbenz devanbenz requested a review from gwossum January 22, 2026 18:43
Copy link
Member

@gwossum gwossum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@devanbenz devanbenz merged commit 1e4693a into main-2.x Jan 22, 2026
25 checks passed
@devanbenz devanbenz deleted the db/cherrypick-f04105 branch January 22, 2026 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/tsm area/2.x OSS 2.0 related issues and PRs kind/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Modify optimized compaction to cover edge cases [port to main-2.x]

3 participants