Skip to content

Conversation

alexqyle
Copy link
Contributor

@alexqyle alexqyle commented Feb 4, 2025

What this PR does:

Cleaner supposed to mark all blocks from completed partition group for deletion. However, it will mark blocks with no-compact marker for deletion as well. This would result in no-compact blocks got deleted. This PR is fixing this issue by adding extra check to make sure no-compact blocks will not be marked for deletion during this process.

Which issue(s) this PR fixes:

Checklist

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

Copy link
Contributor

@danielblando danielblando left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@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.

LGTM

@yeya24 yeya24 merged commit 5b53a48 into cortexproject:master Feb 8, 2025
17 checks passed
@yeya24
Copy link
Contributor

yeya24 commented Feb 8, 2025

Do we want this to go to the 1.19 release as a patch fix?
It would be also nice to have a changelog entry. Sorry I merged too fast

@alexqyle
Copy link
Contributor Author

Do we want this to go to the 1.19 release as a patch fix? It would be also nice to have a changelog entry. Sorry I merged too fast

This fix is nice to have. But no-compact marker can only be uploaded by enduser manually. Under normal situation, deleting block with no-compact marker should not happen that often.

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