You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ratis.apache.org by GitBox <gi...@apache.org> on 2020/12/23 03:03:12 UTC

[GitHub] [incubator-ratis] szetszwo commented on pull request #372: RATIS-1260. Implement transferLeaderShip in server

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


   > Not sure whether TimeoutScheduler is enough, if user pass a big value of timeout, such as 100 seconds, but transferLeadership finish in 1 second, we should not return to client after 100 seconds, so maybe we have to check periodically to return to client as soon as possible.
   
   When the leader receives a request, it creates a reply future F and a timeout task T.  If the leader has successfully transferred leadership within timeout, it completes F.  When timeout occurs, T checks if F has already been completed.  If yes, T does nothing.  Otherwise, it completes F exceptionally.
   
   In asynchronous event driven, everything is triggered by an event.  It should not periodically check if an event has occurred.


----------------------------------------------------------------
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:
users@infra.apache.org