amaliujia opened a new pull request #198: URL: https://github.com/apache/incubator-ratis/pull/198
## What changes were proposed in this pull request?  Analysis: testRestorePriority failed due to no leader selected exception. Based on the log, two of three server in the cluster was stuck at STARTING state so they could not participate into leader election, no matter how long waiting time. So this PR proposes to restart the cluster when no leader is elected when have reached half of the number of attempts. Because at this moment it is likely that the servers are stuck somehow so keep waiting won't change anything. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/RATIS-1060 ## 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]
