[ https://issues.apache.org/jira/browse/HDDS-13112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wei-Chiu Chuang updated HDDS-13112: ----------------------------------- Parent: HDDS-12940 Issue Type: Sub-task (was: Improvement) > [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: Sub-task > Components: documentation, OM HA > Affects Versions: 2.1.0 > Reporter: Wei-Chiu Chuang > Assignee: Wei-Chiu Chuang > Priority: Minor > Labels: pull-request-available > Fix For: 2.1.0 > > > [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: issues-unsubscr...@ozone.apache.org For additional commands, e-mail: issues-h...@ozone.apache.org