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/05/10 03:57:48 UTC

[GitHub] [ratis] Xushaohong commented on pull request #643: RATIS-1577. Install snapshot failure

Xushaohong commented on PR #643:
URL: https://github.com/apache/ratis/pull/643#issuecomment-1121875913

   As SCM uses bootstrap to set up HA, it goes through this branch.
   ```
   if (isFollowerBootstrapping && !follower.hasAttemptedToInstallSnapshot()) {
         // If the follower is bootstrapping and has not yet installed any snapshot from leader, then the follower should
         // be notified to install a snapshot. Every follower should try to install at least one snapshot during
         // bootstrapping, if available.
         LOG.debug("{}: follower is bootstrapping, notify to install snapshot to {}.", this, firstAvailable);
         return firstAvailable;
       }
   ```
   Meanwhile, the leader is also newly started, which has not truncated the raft log yet. The `firstAvailable` will be 0 here. 


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