amaliujia opened a new pull request #198:
URL: https://github.com/apache/incubator-ratis/pull/198


   ## What changes were proposed in this pull request?
   ![Screen Shot 2020-09-13 at 11 33 19 
PM](https://user-images.githubusercontent.com/1938382/93052024-41b22d00-f61a-11ea-8034-2811bdf0f928.png)
   
   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]


Reply via email to