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 2021/11/04 06:24:21 UTC

[GitHub] [ratis] szetszwo removed a comment on pull request #521: RATIS-1418. Leader step down for not sending out heartbeat promptly

szetszwo removed a comment on pull request #521:
URL: https://github.com/apache/ratis/pull/521#issuecomment-960489823


   We should return null as below.
   ```
       if (heartbeatRemainingMs <= 0L) {
         if (follower.getLastHeartbeatSendTime().elapsedTimeMs() < getServer().properties().minRpcTimeoutMs()/4) {
           return null;
         }
         heartbeat = true;
       }
       if (heartbeat) {
         return leaderState.newAppendEntriesRequestProto(follower, Collections.emptyList(), previous, callId);
       }
   ```
   


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