-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
documentation for in-place migrations with x/upgrade module #8967
Conversation
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.
Read through it, it looks good! I added some improvement proposals
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
…os-sdk into ty-8940-upgrade_docs
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.
Blocking this PR for now. We might need bigger warnings on this docs, like "be careful what you're doing here".
Also, would like to add a small section about #8988 (comment). If you have context on that @technicallyty, feel free to take a stab at it. happy to discuss this with you more in details during a call.
We might also need a paragraph on InitGenesis stuff #8989 (comment), but that's still WIP
Yeah that makes sense. There should be clear cut ways for an app dev to smoothly introduce new modules w/ genesis etc |
Co-authored-by: Barrie Byron <barrie.byron@tendermint.com>
Once a chain is upgraded using an in place store migration, how does a new node sync? During the in place store migration there is no genesis file generates for a new node to sync from. State sync can be used to instant sync to height. This question should be addressed in this document. |
If the upgrade looks like
Makes sense. @technicallyty would you be able to add a section on full node sync? |
added sync section. Not sure how specific I needed to get here, so let me know if im missing any important notes. |
Sync section looks good to me |
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 👍
- Exporting the entire application state to a JSON file using the `export` CLI command, making changes, and then starting a new binary with the changed JSON file as the genesis file. See the [Chain Upgrade Guide](../migrations/chain-upgrade-guide-040.md#upgrade-procedure). | ||
|
||
- Version v0.43 and later can perform upgrades in place to significantly decrease the upgrade time for chains with a larger state. Use the [Migration Upgrade Guide](../building-modules/upgrade.md) guide to set up your application modules to take advantage of in-place upgrades. | ||
|
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 remember reading a sentence saying something like "this document describes the 2nd method", imo it's still useful to add it here
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.
…os-sdk into ty-8940-upgrade_docs
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.
let's describe the purpose of the doc instead of "specified " or "mentioned above"
looks good!
Co-authored-by: Barrie Byron <barrie.byron@tendermint.com>
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.
Thank you for this, it answered some open questions of mine
Description
Adds documentation for both module and application developers who want to utilize the in-place store migration functionality with x/upgrade.
closes: #8940
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes