SzyWilliam commented on PR #713: URL: https://github.com/apache/ratis/pull/713#issuecomment-1216379366
@codings-dan Thanks for the review! Here's how I solve these two problem: I add a callback in `setLeader` to disable firstElectionTimeout whenever server has a known leader. That means, 1. The `firstElectionTimeout` is set to false when a new group leader is successfully elected. 2. The `firstElectionTimeout` in two followers is set to false since Leader's AppendEntries will trigger `setLeader` method. What do you think? -- 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]
