-
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.
kvserver: stop returning speculative leases from uninitialized replicas
Previously, if a request was routed to an uninitialized replica, the returned NLHE would contain a speculative lease pointing to the creator of the uninitialized replica. The prior commit makes it such that lease/leaseholder information in NLHEs is only considered if accompanied by a non-stale range descriptor. As uninitialized replicas always return empty range descriptors, which are considered stale, the speculative lease they returned would never be acted upon. Given this, we omit speculative leases in NLHEs returned by uninitialized replicas. The idea being the client will simply move on to the next replica in its transport which will very likely have more useful leaseholder information for the client. Release note: None Release justification: Low risk, high benefit change
- Loading branch information
1 parent
5fb48d6
commit e1c24ed
Showing
4 changed files
with
116 additions
and
109 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