-
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
fix(state): Update column family names to match Zebra's database design #4639
Conversation
0ad51f4
to
68f097f
Compare
Codecov Report
@@ Coverage Diff @@
## main #4639 +/- ##
==========================================
- Coverage 78.78% 78.78% -0.01%
==========================================
Files 306 306
Lines 37552 37549 -3
==========================================
- Hits 29586 29582 -4
- Misses 7966 7967 +1 |
We want to use this state version change to test old database deletion in PR #4586, so I've marked that as a dependency. |
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.
These all look pretty good!
I have a few suggestions for cleaning things up a bit.
...e/finalized_state/disk_format/tests/snapshots/block_header_by_height_raw_data@mainnet_0.snap
Show resolved
Hide resolved
...src/service/finalized_state/disk_format/tests/snapshots/empty_column_families@mainnet_0.snap
Show resolved
Hide resolved
I updated the description of the PR to match the newly added commits. I'll wait for PR #4586, and then increment |
PR #4586 doesn't change the database format, it just changes how we deal with outdated versions that are left behind on disk. So this PR can stay at version 25. |
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.
PR #4586 is about to merge, so we can merge this one next if you want.
@Mergifyio update |
✅ Branch has been successfully updated |
https://github.com/ZcashFoundation/zebra/runs/6991264216?check_suite_focus=true#step:6:97 It looks like we skipped the "create state image" job, but we should have run it when the state version was updated: I'll see if I can fix this in another PR. |
We haven't been creating cached state disks for about a month, I think that's fixed by: |
@Mergifyio update. |
✅ Branch has been successfully updated |
@Mergifyio update |
✅ Branch has been successfully updated |
Motivation
The documentation at https://github.com/ZcashFoundation/zebra/blob/main/book/src/dev/rfcs/0005-state-updates.md#rocksdb-data-structures does not currently match the source code. This PR makes the source code consistent with the docs.
Depends-On: #4586
Depends-On: #4669
Depends-On: #4704
Solution
This PR:
struct Chain
in the docs for the non-finalized state.DATABASE_FORMAT_VERSION
to 25.Addresses #4150.
Review
I have not ran all tests yet, and some tests were failing, so I'm labelling this PR as a draft until I make the tests pass.
Reviewer Checklist