swamirishi commented on code in PR #7179:
URL: https://github.com/apache/ozone/pull/7179#discussion_r1753045640
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OmSnapshotManager.java:
##########
@@ -674,6 +675,40 @@ private ReferenceCounted<OmSnapshot> getSnapshot(String
snapshotTableKey, boolea
return snapshotCache.get(snapshotInfo.getSnapshotId());
}
+ /**
+ * Checks if the last transaction performed on the snapshot has been flushed
to disk.
+ * @param metadataManager Metadatamanager of Active OM.
+ * @param snapshotTableKey table key corresponding to snapshot in
snapshotInfoTable.
+ * @return True if the changes have been flushed to DB otherwise false
+ * @throws IOException
+ */
+ public static boolean areSnapshotChangesFlushedToDB(OMMetadataManager
metadataManager, String snapshotTableKey)
Review Comment:
yup
--
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]