-
Notifications
You must be signed in to change notification settings - Fork 107
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
change(state): Prepare for in-place database format upgrades, but don't make any format changes yet #7031
Conversation
f4d3b0c
to
c82aa58
Compare
This comment was marked as outdated.
This comment was marked as outdated.
c82aa58
to
de24535
Compare
de24535
to
8b90099
Compare
This comment was marked as resolved.
This comment was marked as resolved.
5fc7226
to
117f5b6
Compare
7d4fd76
to
20e642e
Compare
This worked and created a disk with the correct version description and labels: |
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.
Looks good to me!
Thank you for the well-organized tests and related cleanups.
@Mergifyio update |
✅ Branch has been successfully updated |
Motivation
We need a way to upgrade the on-disk database format, without re-syncing the whole chain.
Close #6955
Complex Code or Requirements
This is concurrent code, we need to be careful to shut down correctly, and regularly check for panics in the inner thread.
A lot of this code is modified from the block write task. We could refactor that task to use a generic
ThreadHandle
type in a future PR.Solution
Implementation:
Logging:
Testing
zebrad
tests:CI:
zebrad
logging the state versionsRelated changes:
Review
This is a large PR, so I'm happy to do a video review, or split the test harness refactor and the CI changes into separate PRs.
Reviewer Checklist
Follow Up Work
See #6955: