-
Notifications
You must be signed in to change notification settings - Fork 493
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
Feature/DB repair on corruption #4911
Conversation
Can we break some DB with restarts and apply this PR to recover? @kamilchodola |
Tried killing the node while processing. Does not cause corruption for me. |
@LukaszRozmej Would with biggest pleasure break some DBs for You :) I just need an Ayman PR on master or merged into this PR as well for this debug rpc endpoint. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: Should we potentially move this to the internal package? Especially at least not to touch rocksDbNative here. @rubo
Probably, it wont make much different though as its only one call. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would still prefer hiding Native in package ( https://github.com/NethermindEth/rocksdb-sharp )
@asdacap @LukaszRozmej as for now no corruptions on any of el-cl-chain combination but will wait for a bit longer to see |
Changes:
Types of changes
What types of changes does your code introduce?
Put an
x
in the boxes that applyTesting
Requires testing
In case you checked yes, did you write tests??
Comments about testing , should you have some (optional)
force_consistency_checks
error. Same error if usingldb
tool directly. Tried on state and block db.Further comments (optional)
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...