Skip to content
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

chore(cosmos): state-sync improvements #8975

Merged
merged 2 commits into from
Feb 23, 2024

Conversation

mhofman
Copy link
Member

@mhofman mhofman commented Feb 23, 2024

refs: #8888

Description

Adds simple logging to know when we're starting each step of the state-sync restore.

A test of the upcoming upgrade-14 on mainfork took almost 3 hours to restore, which is a big regression (approx 50%) from earlier versions, and the lack of logging makes it hard to pin-point where this regressions is.

This is not a fix for 8888, only some surface logging that could be easily added without enabling the more verbose option that would spamming stdout.

This also syncs up the commands that are in upstream cosmos-sdk/simapp/simd/cmd/root.go, in particular the new snapshot command which allows to manage the local snapshot DB and perform all snapshot operations triggered by the command line! See cosmos/cosmos-sdk#16067

Security Considerations

None

Scaling Considerations

None

Documentation Considerations

None

Testing Considerations

Manually tested that snapshots list / dump / load works as expected
snapshots export does not work because the way our extension integrates with the snapshot mechanism is not compatible (will file an issue)
I did manage to verify snapshots restore works, with some necessary shenanigans due to discrepancy between tendermint and cosmos heights.

Upgrade Considerations

Would like to include in upgrade-14

@mhofman mhofman added the automerge:squash Automatically squash merge label Feb 23, 2024
@mhofman mhofman removed the automerge:squash Automatically squash merge label Feb 23, 2024
@mhofman mhofman changed the title chore(cosmos): add logging to state-sync extension restore chore(cosmos): state-sync improvements Feb 23, 2024
@mhofman mhofman added the force:integration Force integration tests to run on PR label Feb 23, 2024
@mhofman mhofman added the automerge:rebase Automatically rebase updates, then merge label Feb 23, 2024
@mhofman mhofman force-pushed the mhofman/8888-state-sync-logging-part-1 branch from 8ba1a88 to c27b24e Compare February 23, 2024 18:59
mhofman added a commit that referenced this pull request Feb 23, 2024
…part-1-u14

chore(cosmos): state-sync improvements (#8975)
@mergify mergify bot merged commit fd0382d into master Feb 23, 2024
67 checks passed
@mergify mergify bot deleted the mhofman/8888-state-sync-logging-part-1 branch February 23, 2024 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge:rebase Automatically rebase updates, then merge force:integration Force integration tests to run on PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants