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: add leveldb recover ability #352

Merged
merged 2 commits into from Aug 4, 2022

Conversation

mfmarche
Copy link
Contributor

@mfmarche mfmarche commented Aug 3, 2022

While fixing #349, the leveldb supports a Recover() method in case the
manifest is broken. I validated that the Recover would have recovered
the manifest file using the db file (that still existed). Add a test
that validates if the manifest is truncated, it can be recovered.

Signed-off-by: Mike Marchetti mike@agilicus.com

Please fill in the fields below to submit a pull request. The more information that is provided, the better.

Fixes #
Release Notes:

Types of changes:

  • Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Description of the changes being introduced by the pull request:

Please verify and check that the pull request fulfills the following requirements:

  • Tests have been added for the bug fix or new feature
  • Docs have been added for the bug fix or new feature

While fixing theupdateframework#349, the leveldb supports a Recover() method in case the
manifest is broken. I validated that the Recover would have recovered
the manifest file using the db file (that still existed). Add a test
that validates if the manifest is truncated, it can be recovered.

Signed-off-by: Mike Marchetti <mike@agilicus.com>
Copy link
Contributor

@znewman01 znewman01 left a comment

Choose a reason for hiding this comment

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

Nice! Thanks, @mfmarche

Copy link
Member

@joshuagl joshuagl left a comment

Choose a reason for hiding this comment

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

Very neat, thanks @mfmarche !

@trishankatdatadog
Copy link
Member

Shouldn't there be an option to merge/rebase with the base branch from the GitHub UI? I don't see it here, which is a shame, bcos we have to wait for @mfmarche to do it manually for us.

@znewman01 znewman01 merged commit 1b070ee into theupdateframework:master Aug 4, 2022
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

4 participants