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.
kvclient: reset the transport on lease change
When we receive a NotLeaseHolderError and change the leaseholder based on updated lease information, we want to run through the entire transport again before giving up and returning to sendPartialBatch. On proxy requests, we need to retry the non-leaseholder replicas with the updated leaseholder information as they may be able to proxy the request to the leaseholder. Epic: none Release note: None
- Loading branch information
1 parent
0fe4c02
commit b5caa16
Showing
2 changed files
with
29 additions
and
7 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