forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kvserver: make AdminVerifyProtectedTimestamp a no-op
As part of re-working the PTS subsystem to work with secondary tenants we are dropping verification of protection records. None of the existing users of `Verification` (currently only backup) would fail non-destructively without it; this allows us to circumvent the complexity involved in making `Verification` work in the new subsystem. This patch removes code that was previously used to serve the `AdminVerifyProtectedTimestamp` request; we instead vacuously return true. This is to account for the {21.2, 22.1} mixed version case where 22.1 binary nodes still need to be able to serve this request. This can happen if the request is initiated on a 21.2 node and the leaseholder of the range it is trying to verify is on a 22.1 node. By always returning true we ensure the (backup) job upstream doesn't fail. This is okay even if the PTS record being verified does not apply as the failure mode is non-destructive (which is also why we're okay removing the call to verification in 22.1). This patch is required in preperation for the `ProtectedTSReader`. Release note: None Release justification: low risk, high benefit changes to existing functionality.
- Loading branch information
1 parent
4fa089a
commit 93b815f
Showing
6 changed files
with
75 additions
and
567 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.