-
Notifications
You must be signed in to change notification settings - Fork 350
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
Problem: long-running IAVL indexing would happen during upgrade #854
Conversation
/runsim |
Simulation tests started and triggered by |
@yihuang hm, with old version of gomod2nix, it runs for a long time and crashed:
for a new version, it has a different schema |
Codecov Report
@@ Coverage Diff @@
## release/v3 #854 +/- ##
=============================================
- Coverage 18.82% 9.69% -9.14%
=============================================
Files 69 36 -33
Lines 7972 5764 -2208
=============================================
- Hits 1501 559 -942
+ Misses 5962 5116 -846
+ Partials 509 89 -420
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
go.mod
Outdated
// TODO: remove when ibc-go upgrades cosmos-sdk version | ||
replace github.com/cosmos/cosmos-sdk => github.com/cosmos/cosmos-sdk v0.44.6 | ||
// needed due to a breaking change in 0.44.6 | ||
replace github.com/cosmos/cosmos-sdk => github.com/crypto-org-chain/cosmos-sdk v0.44.8-patch |
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.
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.
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.
cosmos/cosmos-sdk#13133
the rollback cmd also need this one to really work.
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.
the rollback was primarily cherry-picked because there were some conflicts for the IAVL upgrade commit
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 tried to cherry-pick those commits from the rollback fix PR -- I also had to cherry-pick cosmos/cosmos-sdk@3bdbaf1 because otherwise Application
interface won't have CommitMultiStore()
cosmos/cosmos-sdk@v0.44.6...crypto-org-chain:cosmos-sdk:v0.44.8-patch3
cosmos/cosmos-sdk@release/v0.44.x...crypto-org-chain:cosmos-sdk:v0.44.8-patch3
✅ |
better to update to new version I think, the old one is terrible. |
@yihuang I tried to update it with niv: ab9e35a is there something else needed?
and updating nixpkgs got:
|
@yihuang rebased and it works now, but upgrade fails -- not sure if it's due to the index being computed |
don't find error messages, looks like one of the random chain halt cases, trying rerun. |
succeed. |
44be8f3
to
d6c3f1f
Compare
Solution: created a custom 0.44.8 fork that cherry-picks the new version of IAVL
/runsim |
Simulation tests started and triggered by |
@yihuang I added the rollback fix: given it could take a long time for the IAVL upgrade and there could be an app hash mismatch due to the dependency upgrade, it's good to have the rollback command working |
✅ |
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.
LGTM
NOTE: The IAVL v0.19 upgrade introduces a new index that improves performance, | ||
but when the node is started up for the first time, it may take a while | ||
for the index to be initialized (a few minutes or hours depending on the node | ||
configuration and underlying hardware). |
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 copied this paragraph to cronos v0.8.1
release note ;D
Solution: created a custom 0.44.8 fork that cherry-picks
the new version of IAVL