JoeCqupt commented on PR #1331:
URL: https://github.com/apache/ratis/pull/1331#issuecomment-3701322461

   I have actually considered moving the logic to `changeToFollower(..)`. but 
it has one drawback: 
   
   in `appendEntriesAsync(...)` method  
`changeToFollowerAndPersistMetadata(..)` run before   
`state.updateConfiguration(..)`
   
   when **`NewConf`** RaftConfiguration log Entry come in. the listener do not 
change to follower immediately. the listener will change to follower at next 
time heartbeat or log entry append.
   
   
   Never mind, it works correctly now.  let the logic in `changeToFollower(..) `


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