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

cleanup boltdb files failing to open during loading tables which are possibly corrupt #3605

Conversation

sandeepsukhani
Copy link
Contributor

@sandeepsukhani sandeepsukhani commented Apr 14, 2021

What this PR does / why we need it:
Sometimes files get corrupted when the process gets killed in the middle of a download operation which causes boltdb client to panic. We already recover the panic but the lock on the file is not released by boltdb client which causes the reopening of the file to fail when the sync operation tries it. We want to remove the file failing to open to get rid of the lock.

@sandeepsukhani sandeepsukhani changed the title cleanup boltdb files failing to open during loading tables which are … cleanup boltdb files failing to open during loading tables which are possibly corrupt Apr 14, 2021
@CLAassistant
Copy link

CLAassistant commented Apr 20, 2021

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

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

LGTM

@sandeepsukhani sandeepsukhani merged commit aa544a9 into grafana:main May 3, 2021
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.

3 participants