xichen01 opened a new pull request, #1425:
URL: https://github.com/apache/ratis/pull/1425

   ## What changes were proposed in this pull request?
   
   [RATIS-2427](https://issues.apache.org/jira/browse/RATIS-2427) let the 
LogAppender do not restart when the LogAppenderDaemon in CLOSING or CLOSED or 
EXCEPTION LifeCycle.States . However, if only LogAppenderDaemon is EXCEPTION 
LifeCycle.States, we should still restart LogAppender. 
    
   LeaderStateImpl#restart will create a new GrpcLogAppender (see 
addAndStartSenders -> addSenders -> LeaderStateImpl#newLogAppender) and a new 
LogAppenderDaemon. The old LogAppenderDaemon will be shutdown
   
   Therefore, if the old LogAppenderDaemon enters the EXCEPTION lifecycle for 
some reason, we should attempt to restart LogAppender
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/RATIS-2499
   
   ## How was this patch tested?
   
   new added test


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to