swamirishi commented on code in PR #7200:
URL: https://github.com/apache/ozone/pull/7200#discussion_r1765866795
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/snapshot/SnapshotUtils.java:
##########
@@ -138,37 +150,25 @@ public static void checkSnapshotActive(SnapshotInfo
snapInfo,
}
}
+
/**
- * Get the next non deleted snapshot in the snapshot chain.
+ * Get the next in the snapshot chain.
*/
- public static SnapshotInfo getNextActiveSnapshot(SnapshotInfo snapInfo,
- SnapshotChainManager chainManager, OzoneManager ozoneManager)
+ public static SnapshotInfo getNextSnapshot(OzoneManager ozoneManager,
+ SnapshotChainManager chainManager,
+ SnapshotInfo snapInfo)
throws IOException {
-
// If the snapshot is deleted in the previous run, then the in-memory
// SnapshotChainManager might throw NoSuchElementException as the snapshot
// is removed in-memory but OMDoubleBuffer has not flushed yet.
Review Comment:
its talking about the null check
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]