prashantpogde commented on code in PR #4986:
URL: https://github.com/apache/ozone/pull/4986#discussion_r1242861540
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OmSnapshotManager.java:
##########
@@ -776,6 +776,13 @@ private void validateSnapshotsExistAndActive(final String
volumeName,
// Block SnapDiff if either of the snapshots is not active.
checkSnapshotActive(fromSnapInfo, false);
checkSnapshotActive(toSnapInfo, false);
+
+ // Check if fromSnapshot and toSnapshot are equal.
+ if (Objects.equals(fromSnapInfo, toSnapInfo)) {
Review Comment:
return empty result set in this case.
--
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]