hemantk-12 commented on code in PR #5201:
URL: https://github.com/apache/ozone/pull/5201#discussion_r1302266450


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/snapshot/OMSnapshotPurgeRequest.java:
##########
@@ -94,12 +98,16 @@ public OMClientResponse validateAndUpdateCache(OzoneManager 
ozoneManager,
         SnapshotInfo nextSnapshot = SnapshotUtils
             .getNextActiveSnapshot(fromSnapshot,
                 snapshotChainManager, omSnapshotManager);
+
         updateSnapshotInfoAndCache(nextSnapshot, omMetadataManager,
             trxnLogIndex, updatedSnapInfos, true);
+        updateSnapshotChainAndCache(omMetadataManager, fromSnapshot,

Review Comment:
   There is a possibility that snapshot chain may get corrupted because of 
batch operation.
   Created jira to revisit it: https://issues.apache.org/jira/browse/HDDS-9198



-- 
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]

Reply via email to