-
Notifications
You must be signed in to change notification settings - Fork 68
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
CV add snapshot manager to dig app #425
Conversation
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Crashes here: iavl/nodedb.go
|
Note: Removing snapshot directory to force a new db creation does not resolve the issue |
hey :)! this PR crashes? |
Yes, need some help to figure out why it explodes. Sharing my progress :) Trying to verify whether cosmos-sdk tests out clean, then find what's different about digd. Only issue is most comsos-sdk tests are using memory based store rather than a full iavl db. cosmos-sdk v0.46.6 tests clean, so it's some difference either in:
|
so far the cause found is:
|
Root cause is that Dig's icahost store has cosmos/iavl/ImmutableTree ndb *nodedb is set to nil Snapshot works if cosmos/iavl doesn't crash on that error. So
|
Related PRs: Prevent newExporter crash if tree.ndb is nil #622 fix: snapshot recover from exporter error #13935 |
Snapshot is tested to work by replacing cosmos/iavl with chillyvee/iavl branch replacing cosmos/cosmos-sdk with chillyvee/cosmos-sdk branch tagged as follows
Currently running this as a build script
Use the following config.toml snapshot edits
|
goleveldb -> pebbledb restore - OK |
@faddat - Wondering if the pruning panic issue is due to icahost not having nodedb configured. Pruning icahost which does not have a ndb *nodedb configured is probably what is breaking pruning Does Dig chain use icahost? It seems to statesync/snapshot restore just fine without icahost. In dig app/app.go
In cosmos/ibc-go/modules/apps/27-interchain-accounts/module.go
Would controllerKeeper: nil add to this problem? Tried to remove ICAModule
But still get Don't think that icahost would complain about 590 if it's empty. It is some other problem. icahost pruning without a nodedb configured may add a problem later. |
Current snapshot creation/restore testing notes published here: |
amazing dude |
What is the purpose of the change
dig v3.3.1 and cosmos-sdk v0.46.6 omit the snapshot manager
add it back in
Brief Changelog
add snapshot manager to cmd/root.go
Testing and Verifying
Currently broken