-
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
kv: bump ReplicaChecksumVersion, disable cross v23.2/v24.1 consistency checks #117304
kv: bump ReplicaChecksumVersion, disable cross v23.2/v24.1 consistency checks #117304
Conversation
It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR? 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
@erikgrinaker @pav-kv I'd like to get your input on this option for resolving #117302. The benefit is that it's simple and it doesn't require a revert of #105523 1. The downside is that it uses the In the meantime, I'll run this with #117294 for a few dozen iterations overnight to confirm that it resolves the inconsistency. Footnotes
|
This seems fine to me. It's why You've verified that we don't have any further dependencies on |
SGTM |
Since we're bumping the version anyway, do we want to do any drive-by changes/refactorings to the hash computation? For example, #117302 mentions we're using |
d0437f8
to
ca1c61b
Compare
…y checks Informs cockroachdb#101938. This commit bumps the ReplicaChecksumVersion to disable replica consistency checks between v23.2 and v24.1 nodes when in a mixed-version cluster. This avoids the backwards incompatibility discussed in cockroachdb#117302. While here and permitted to change the replica consistency check logic, we unset the Synthetic flag from RangeAppliedState.RaftClosedTimestamp during stats-only consistency checks. This form of consistency check is rarely used, but this prevents it from causing trouble with cockroachdb#101938. While here and allowed to change the consistency check hash computation, we also switch from using the LegacyTimestamp encoding to the Timestamp encoding for the hash contribution of MVCCKeys. Release note: None
ca1c61b
to
63ca265
Compare
@erikgrinaker and @pav-kv, I've updated this PR with your suggestions. Now that #117324 has landed and all of the synthetic timestamp migration will land in v24.1, #117302 is no longer an issue for v23.1/v23.2 mixed-version clusters, but it will still be an issue for the eventual v23.2/v24.1 state. This PR will avoid that, so I'm planning to land it just on master. PTAL when you get a chance. |
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 3 of 3 files at r1, all commit messages.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @pav-kv)
TFTR! bors r+ |
This PR was included in a batch that timed out, it will be automatically retried |
Build succeeded: |
Informs #101938.
Fixes #117302.
This commit bumps the ReplicaChecksumVersion to disable replica consistency checks between v23.2 and v24.1 nodes when in a mixed-version cluster. This avoids the backwards incompatibility discussed in #117302.
While here and permitted to change the replica consistency check logic, we unset the Synthetic flag from RangeAppliedState.RaftClosedTimestamp during stats-only consistency checks. This form of consistency check is rarely used, but this prevents it from causing trouble with #101938.
While here and allowed to change the consistency check hash computation, we also switch from using the LegacyTimestamp encoding to the Timestamp encoding for the hash contribution of MVCCKeys.
Release note: None