Shilun Fan created RATIS-2682:
---------------------------------
Summary: Use the original Raft group for client retries in
testKillLeaderDuringReconf
Key: RATIS-2682
URL: https://issues.apache.org/jira/browse/RATIS-2682
Project: Ratis
Issue Type: Bug
Reporter: Shilun Fan
Assignee: Shilun Fan
testKillLeaderDuringReconf fails intermittently with SimulatedRpc: "New leader
s2 is not bootstrapping peer s3".
Cause:
The test calls addNewPeers() and removePeers() prior to creating the Raft
client, which updates cluster.group to the target configuration prematurely. As
a result, the client's view contains unstarted peers and lacks the original
voting members who might become the new leader post-kill. Under SimulatedRpc,
requests to unstarted peers block for 3s. Repeated retries exhaust the test
timeout before setConfiguration can reach the new leader.
Fix:
Preserve the original Raft group for client creation so retries target original
voting members, while keeping the target configuration for the setConfiguration
request itself.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)