-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
pruning=everything causes db corruption #10352
Comments
Yeah I've also numerous reports of this...it smells like an off-by-one type of situation if I had to guess (as I've implemented most of this logic). I would say this is pretty high priority. @AmauryM any ideas who has bandwidth to look into this? |
@alexanderbez do you think you have bandwidth to tackle this? If not we can maybe find someone on the regen team |
Yeah you can assign it to me, but I don't know when I'll be able to get to it. It might take me a few weeks. |
In the meantime, I would recommend a |
Proposal: Have Thoughts @ValarDragon ? |
100% agreed, and we just file an issue for long term figuring out what the actual problem was |
Summary of Bug
its been repeatedly reported that
pruning=everything
will cause db corruption for nodes across different cosmos chains. The db corruption looks likefailed to load latest version: failed to load store: wanted to load target 1488419 but only found up to 0
. Presumably this is coming from restarting a node, but not even keeping the latest state due to {some} issue.Version
All versions on the v0.42.X line. I am unsure about v0.44.x chains, as I don't actively work on any v0.44.x release chains atm.
Steps to Reproduce
Run a node with
pruning=everything
, occasionally stop and restart it, and this will happen.Suggested fix
Perhaps
pruning=everything
should be equivalent tokeep-recent=1
orkeep-recent=2
? Or is there another solution here to make it safer / less prone to db corruptions? FWIW, on a chainlayer pruned snapshot that got corrupted, the right size of data for state was still there. I did not inspect how different the saved data was to other nodes. (in part b/c idk how, I don't know of a convenient framework to decode leveldb entries)For Admin Use
The text was updated successfully, but these errors were encountered: