You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Wei-Chiu Chuang (Jira)" <ji...@apache.org> on 2025/06/08 21:40:00 UTC

[jira] [Assigned] (HDDS-13112) [Docs] OM Bootstrap can also happen when follower falls behind too much

     [ https://issues.apache.org/jira/browse/HDDS-13112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wei-Chiu Chuang reassigned HDDS-13112:
--------------------------------------

    Assignee: Wei-Chiu Chuang

> [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
>            Assignee: Wei-Chiu Chuang
>            Priority: Minor
>
> [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-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org