szetszwo commented on pull request #383:
URL: https://github.com/apache/incubator-ratis/pull/383#issuecomment-756887260


   > We may not need the LEADER_LEASE_TIMEOUT_RATIO_KEY at the very beginning. 
...
   
   I agree with @GlenGeng that we may not need LEADER_LEASE_TIMEOUT_RATIO_KEY.  
If we take rpc-send-time right before sending out appendEntries, it seems 
pretty safe to use min-rpc-timeout as the leader-lease-timeout.  If split brain 
happens, it has to take at least (min-rpc-timeout + leader election time) to 
elect a new leader.  Then, the old leader lease must be expired by that time.
   
   @runzhiwang , 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.

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


Reply via email to