amaliujia opened a new pull request #197: URL: https://github.com/apache/incubator-ratis/pull/197
## What changes were proposed in this pull request?`  The test failed because the actual elected leader is not the expected leader. Analysis: The original test keeps only one follower and kill other follower, then write a new message to Ratis ring. So the only left follower will have one entry that other closed follower do not have. Then the test kills the leader. The intention here is to expect that follower with higher entry index be selected as leader. However, because only one follower has higher entry index, so Ratis does not guarantee that follower is elected. The resolution is to keep at least half of followers alive to preserve that higher entry index. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/RATIS-1063 ## How was this patch tested? UT ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
