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

Fix retention to immediately update the in-memory blocklists for changes #1389

Merged
merged 2 commits into from
Apr 18, 2022

Conversation

mdisibio
Copy link
Contributor

What this PR does:
This PR fixes retention to immediately update the in-memory blocklist for changes. This prevents errors if retention runs twice before the next polling cycle, where it would try to retain the same block twice.

Note - We already do this after compaction, but it only added compactedMeta. Now we are removing too, so there is a new function param and test cases in blocklist.Update.

Which issue(s) this PR fixes:
Fixes part of #1372

Checklist

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

@mdisibio mdisibio added this to the v1.4 milestone Apr 15, 2022
@joe-elliott joe-elliott mentioned this pull request Apr 15, 2022
3 tasks
Copy link
Member

@joe-elliott joe-elliott left a comment

Choose a reason for hiding this comment

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

looks good! minor request if you have a second, but no worries if you just want to click that big green button

tempodb/blocklist/list.go Show resolved Hide resolved
@mdisibio mdisibio merged commit da37526 into grafana:main Apr 18, 2022
@mdisibio mdisibio deleted the retention-race-fix branch April 25, 2023 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants