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

Exclude blocks in last active window from compaction #411

Merged
merged 1 commit into from
Dec 15, 2020

Conversation

mdisibio
Copy link
Contributor

What this PR does:
Excludes blocks in the last active time window from compaction. This prevents errors from ownership conflicts where two compactors process the same block at the same time, which can occur at the boundary from active to inactive sharding schemes.

Example: compactor A starts a compaction on data 23:59 ago, and 2 minutes later compactor B starts a compaction on data 24:01 ago. The same blocks can be chosen by both, and compactor B will experience errors marking the blocks as compacted at the end of compaction. Additionally the data in the shared blocks will be duplicated into the new blocks.

Which issue(s) this PR fixes:
n/a

Checklist

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

@joe-elliott joe-elliott merged commit 4c0ea69 into grafana:master Dec 15, 2020
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.

2 participants