Wei-Chiu Chuang created HDDS-13112:
--------------------------------------

             Summary: [Docs] OM Bootstrap can also happen when follower falls 
behind too much
                 Key: HDDS-13112
                 URL: https://issues.apache.org/jira/browse/HDDS-13112
             Project: Apache Ozone
          Issue Type: Improvement
          Components: documentation, OM HA
    Affects Versions: 2.1.0
            Reporter: Wei-Chiu Chuang


[https://ozone.apache.org/docs/edge/feature/om-ha.html]

 

It is written in the user doc that OM bootstrap happens when adding a new OM. 
Ratis would trigger notifyInstallSnapshotFromLeader() if a follower OM falls 
behind the leader OM. We should update the doc to include this condition too.

[https://github.com/apache/ratis/blob/c1da37cb455bbf94da267b3f2b9bf3884017e1ca/ratis-server-api/src/main/java/org/apache/ratis/server/leader/LogAppender.java#L109]
{code:java}
/**
 * Should this {@link LogAppender} send a snapshot to the follower?
 *
 * @return the snapshot if it should install a snapshot; otherwise, return null.
 */
default SnapshotInfo shouldInstallSnapshot() {
  // we should install snapshot if the follower needs to catch up and:
  // 1. there is no local log entry but there is snapshot
  // 2. or the follower's next index is smaller than the log start index
  // 3. or the follower is bootstrapping and has not installed any snapshot yet 
{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to