[ 
https://issues.apache.org/jira/browse/HDDS-1827?focusedWorklogId=296464&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-296464
 ]

ASF GitHub Bot logged work on HDDS-1827:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 16/Aug/19 17:48
            Start Date: 16/Aug/19 17:48
    Worklog Time Spent: 10m 
      Work Description: arp7 commented on pull request #1130: HDDS-1827. Load 
Snapshot info when OM Ratis server starts.
URL: https://github.com/apache/hadoop/pull/1130#discussion_r314824182
 
 

 ##########
 File path: 
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/ratis/OzoneManagerStateMachine.java
 ##########
 @@ -103,6 +111,16 @@ public void initialize(RaftServer server, RaftGroupId id,
     });
   }
 
+  @Override
+  public SnapshotInfo getLatestSnapshot() {
+    return snapshotInfo;
+  }
+
+  @Override
+  public void notifyIndexUpdate(long term, long index) {
 
 Review comment:
   I see we ignore the supplied index. I guess we don't need to update it - why 
is that?
 
----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 296464)
    Time Spent: 1h 10m  (was: 1h)

> Load Snapshot info when OM Ratis server starts
> ----------------------------------------------
>
>                 Key: HDDS-1827
>                 URL: https://issues.apache.org/jira/browse/HDDS-1827
>             Project: Hadoop Distributed Data Store
>          Issue Type: Sub-task
>            Reporter: Hanisha Koneru
>            Assignee: Hanisha Koneru
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> When Ratis server is starting it looks for the latest snapshot to load it. 
> Even though OM does not save snapshots via Ratis, we need to load the saved 
> snaphsot index into Ratis so that the LogAppender knows to not look for logs 
> before the snapshot index. Otherwise, Ratis will replay the logs from 
> beginning every time it starts up.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

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

Reply via email to