-
Notifications
You must be signed in to change notification settings - Fork 315
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
upgrades: 🚘 migrations should be idempotent #4365
Comments
Ahoy: https://github.com/penumbra-zone/penumbra/blob/v0.73.2/crates/core/app/src/lib.rs#L24 We also reference this value in the repo's |
I don't think it's a duplicate? This is about adding migration-scoped check against specific protocol versions, the other ticket is about changing the halt signaling mechanism and adding a broad "is chain halted" check to |
agreed, i marked it as resolved because i was able to figure that out. thank you! |
I think that #4373 would close this, since the migrate command would bail out if the halt-bit is unset, thus making all migrations idempotent at the top-level. |
Closed in #4373. |
I don’t see any evidence in that thread that there is an idenpotency issue. |
We're not actually using this value in storage yet (#4365), but we still update it for clarity about compatibility.
## Describe your changes We're not actually using this value in storage yet (#4365), but we still update it for clarity about compatibility. ## Issue ticket number and link ## Checklist before requesting a review - [x] If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason: > docs and logging-only app version, does not affect how node comes to consensus Co-authored-by: Conor Schaefer <conor@penumbralabs.xyz>
Is your feature request related to a problem? Please describe.
it would be nice if migrations were idempotent, to help make operator's lives easier while performing chain upgrades.
Describe the solution you'd like
it would be nice if we could examine a version number (q: which?), and only apply a migration if the version number was below some threshold, and returning early if not, rather than writing migrations in such a way as to be idempotent.
The text was updated successfully, but these errors were encountered: