You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by GitBox <gi...@apache.org> on 2022/08/16 09:21:34 UTC

[GitHub] [ratis] SzyWilliam commented on pull request #713: RATIS-1638. Separate first election timeout

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: issues-unsubscribe@ratis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org