-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
State rollback error against gaiad data #7123
Comments
Hey @sosedoff, thanks for opening this issue. The rollback shouldn't just be done on the Tendermint side but must also be coordinated with the application. The app must rollback its state to the previous height so that Tendermint knows to replay the last block. As an example if we want to rollback from 100 to 99, Tendermint will rollback it's state to height 99 but if the application stays at 100, when it replays block 100 to the app it will compare that the incorrect old app hash is equal to the new app hash (at height 100). If they're not it will panic. All that being said, these two errors you've shown me are slightly different (and I think I know what's causing the first one). So I'll see if I can debug the problem. For the second one, do you mind showing me more of the log that resulted in this error? |
@cmwaters Here's the second log:
|
@cmwaters have you had any chance to look into this yet? |
Hey, I've posted a minor patch to address one concern I noted from your logs. I'm still unsure how the state store height and block store height diverged by so much: I think many of these issues can be further ironed out once the cosmos SDK implement rollback functionality on their side and so the tooling is complete and can be properly tested on running nodes. |
The height has diverged simply due to me running the rollback a few times |
Hey @sosedoff, I made some changes to the rollback feature which I hope has fixed things. Do you mind letting me know if you still have a problem with this else we can close this issue |
Yea we can close for now |
Versions:
Background:
Trying to test out state rollback command backported in #7080. My current local state was at height 5213559.
Error
Executed the rollback command a few times and after starting the
gaiad
process again got this panic:I restored data directory from a working dev snapshot (on a slightly different height), and attempted to execute rollback once, this time i got a different error (no panic):
Is the rollback command compatible with
gaiad
?The text was updated successfully, but these errors were encountered: