-
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.
kv: add TestTransferLeaseDuringJointConfigWithDeadIncomingVoter
This commit adds a new test which ensures that the lease transfer performed during a joint config replication change that is replacing the existing leaseholder does not get stuck even if the existing leaseholder cannot prove that the incoming leaseholder is caught up on its log. It does so by killing the incoming leaseholder before it receives the lease and ensuring that the range is able to exit the joint configuration. Currently, the range exits by bypassing safety checks during the lease transfer, sending the lease to the dead incoming voter, letting the lease expire, acquiring the lease on one of the non-demoting voters, and exiting. The details here may change in the future, but the goal of this test will not.
- Loading branch information
1 parent
f4990e9
commit e6b99fd
Showing
3 changed files
with
107 additions
and
0 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