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

Improve error handling for trimming process #19

Merged
merged 2 commits into from
Oct 14, 2024
Merged

Conversation

ethitter
Copy link
Member

If the trimming process fails, the database is left in an unknown and, often, unusable state. It may be too large, or may contain data that would've been removed in the post-trim cleanup. For safety, when the trim fails, discard the entire database.

If the trimming process fails, the database is left in an unknown and,
often, unusable state. It may be too large, or may contain data that
would've been removed in the post-trim cleanup. For safety, when the
trim fails, discard the entire database.
@ethitter ethitter marked this pull request as ready for review September 30, 2024 20:55
Copy link

@shawncook shawncook left a comment

Choose a reason for hiding this comment

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

@ethitter ethitter merged commit b4e0802 into main Oct 14, 2024
3 checks passed
@ethitter ethitter deleted the update/drop-failed-db branch October 14, 2024 21:36
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