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

Close gaps where append/completeblock file handles would rely on GC to close #570

Merged
merged 3 commits into from
Mar 8, 2021

Conversation

mdisibio
Copy link
Contributor

@mdisibio mdisibio commented Mar 5, 2021

What this PR does:
This PR addresses a few instances where Append/CompleteBlock file handles would be left open and rely on GC to cleanup. The split of the deletion of WAL (AppendBlock) from creation of CompleteBlock also helps to ensure that AppendBlock.Clear is called, closing all handles.

Which issue(s) this PR fixes:
Fixes #569

Checklist

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

CHANGELOG.md Outdated Show resolved Hide resolved
modules/ingester/instance.go Outdated Show resolved Hide resolved
@joe-elliott joe-elliott merged commit 7ab0938 into grafana:master Mar 8, 2021
@mdisibio mdisibio deleted the 559-close-files branch May 27, 2021 13:22
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.

Occassionally ingesters fail to clear a head block
3 participants