-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Interleaved snapshot unpack versioning #27484
Interleaved snapshot unpack versioning #27484
Conversation
…re account fields
This shouldn't go out until #27192 is rolled out. |
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.
Overall looks good!
@@ -199,7 +196,7 @@ struct UnarchivedSnapshot { | |||
#[derive(Debug)] | |||
struct UnpackedSnapshotsDirAndVersion { | |||
unpacked_snapshots_dir: PathBuf, | |||
snapshot_version: String, | |||
snapshot_version: SnapshotVersion, |
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.
🙌
match snapshot_version { | ||
SnapshotVersion::V1_2_0 => { |
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.
Nice.
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!
Problem
#27346. #26590 introduced snapshot rebuilding logic that did not check version before unpacking account fields since the version file was serialized later on. We've moved the version file forward in the snapshot in #27192, so we can check the version before loading account fields.
Summary of Changes
Wait for, deserialize, and check snapshot version before processing accounts fields
Fixes #27346