-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
120884: kvclient: remove auth short-circuit r=erikgrinaker a=andrewbaptist Previously DistSender would short circuit attempting replicas if there was an auth failure. THe assumption was that the only reason for an auth error was due to the client having bad information and attempts against any other replicas would fail with the same error. This is an incorrect assumption for several reasons. 1) The auth error was caused by a server side certificate expiration. 2) The receiver may have stale information. a) The receiver didn't know this node had yet joined. b) The receiver was using stale tenant authorization information. 3) The receiver needed to make an extra request to complete this batch request and that request encountered an auth error which was part of the returned error. 4) The receiver proxied the request and received an auth error on the other side of the connection. 5) The remote server is removed from the cluster and can't validate our auth information. There may be other reasons as well either today or in the future. We still want to terminate the loop after one pass through the replicas, but we can't short circuit on the first auth error. Epic: none Release note: None 120903: changefeedccl: deflake TestChangefeedWithSimpleDistributionStrategy r=jayshrivastava a=andyyang890 This patch deflakes `TestChangefeedWithSimpleDistributionStrategy` by disabling the new `changefeed.random_replica_selection.enabled` cluster setting, since leaving it enabled could lead to ranges being assigned to follower replicas, which is in contradiction with the test assumption that ranges are always assigned to the leaseholder. Fixes #120870 Release note: None Co-authored-by: Andrew Baptist <baptist@cockroachlabs.com> Co-authored-by: Andy Yang <yang@cockroachlabs.com>
- Loading branch information
Showing
4 changed files
with
34 additions
and
30 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