Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skip compaction if there is only 1 block available for shuffle-sharding compactor #4756

Merged
merged 1 commit into from
Jun 23, 2022

Conversation

roystchiang
Copy link
Contributor

@roystchiang roystchiang commented Jun 21, 2022

Currently the shuffle-sharding compactor will continuously compact a single block into a new block, if there is another compactable block marked for no compaction.

What this PR does:

The compactor will skip compaction groups with only 1 block, after checking for blocks marked for no compact.

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@roystchiang roystchiang marked this pull request as draft June 21, 2022 21:28
@roystchiang roystchiang force-pushed the skip-compaction-marker branch 2 times, most recently from 08d6814 to c6a2077 Compare June 21, 2022 21:50
@roystchiang roystchiang force-pushed the skip-compaction-marker branch from c6a2077 to 1c71e88 Compare June 22, 2022 00:19
@roystchiang roystchiang marked this pull request as ready for review June 22, 2022 00:25
@roystchiang roystchiang force-pushed the skip-compaction-marker branch from 1c71e88 to a6a063e Compare June 23, 2022 18:34
@alanprot alanprot merged commit 962eb6d into cortexproject:master Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants