-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
storage: fix checksum version check #37868
Conversation
35983e8
to
ebcb12f
Compare
ebcb12f
to
8d3deb2
Compare
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.
Reviewed 6 of 6 files at r1, 1 of 1 files at r2.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @tbg)
pkg/storage/replica_consistency_test.go, line 53 at r1 (raw file):
rc, err := tc.repl.getChecksum(ctx, cc.ChecksumID) if !matchingVersion { require.True(t, testutils.IsError(err, "checksum is nil"))
If I were to ask for something on this change it'd be a comment about why the expected error here is what it is. I might have expected something about version mismatch case rather than just checksum is nil
though it all makes sense after reading getChecksum
.
Checksum can be nil. Release note: None
The check was sitting at evaluation time, where it is useless. It needs to sit in the below-Raft code that actually computes the checksums. This flew under the radar for quite some time, but was found in: cockroachdb#37737 (comment) thanks to the aggressive consistency checks we run in version/mixed/nodes=3. Release note: None
See cockroachdb#37737 (comment). Release note: None
8d3deb2
to
e13298a
Compare
Done, TFTR! bors r=ajwerner |
bors r=ajwerner |
37868: storage: fix checksum version check r=ajwerner a=tbg The check was sitting at evaluation time, where it is useless. It needs to sit in the below-Raft code that actually computes the checksums. This flew under the radar for quite some time, but was found in: #37737 (comment) thanks to the aggressive consistency checks we run in version/mixed/nodes=3. Release note: None Co-authored-by: Tobias Schottdorf <[email protected]>
Build succeeded |
The check was sitting at evaluation time, where it is useless. It needs to
sit in the below-Raft code that actually computes the checksums.
This flew under the radar for quite some time, but was found in:
#37737 (comment)
thanks to the aggressive consistency checks we run in
version/mixed/nodes=3.
Release note: None