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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]