[
https://issues.apache.org/jira/browse/RATIS-2682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tsz-wo Sze resolved RATIS-2682.
-------------------------------
Fix Version/s: 3.4.0
Resolution: Fixed
The pull request is now merged. Thanks, [~slfan1989]!
> 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: Test
> Components: test
> Reporter: Shilun Fan
> Assignee: Shilun Fan
> Priority: Major
> Fix For: 3.4.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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)