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

Fixed no compact block got grouped in shuffle sharding grouper #5055

Merged
merged 2 commits into from
Dec 19, 2022

Conversation

alexqyle
Copy link
Contributor

@alexqyle alexqyle commented Dec 19, 2022

Signed-off-by: Alex Le leqiyue@amazon.com

What this PR does:
Fixed no compact block got grouped in shuffle sharding grouper which caused blocks with no compact marker were always grouped and tried to be compacted. With concurrency set to 1, this would prevent new blocks got compacted.

Checklist

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

Signed-off-by: Alex Le <leqiyue@amazon.com>
Copy link
Collaborator

@yeya24 yeya24 left a comment

Choose a reason for hiding this comment

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

This looks great. Can we update the changelog?

metrics: `# HELP cortex_compactor_remaining_planned_compactions Total number of plans that remain to be compacted.
# TYPE cortex_compactor_remaining_planned_compactions gauge
cortex_compactor_remaining_planned_compactions 2
`,
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should really improve such test cases, like using CollectAndCompare is better IMHO.
This is just a note, we don't need to do anything in this pr. Let me create an issue to track it.

Signed-off-by: Alex Le <leqiyue@amazon.com>
@yeya24 yeya24 enabled auto-merge (squash) December 19, 2022 21:36
@yeya24 yeya24 merged commit 8c0404f into cortexproject:master Dec 19, 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.

None yet

2 participants