You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "prashantpogde (via GitHub)" <gi...@apache.org> on 2023/06/26 22:00:27 UTC
[GitHub] [ozone] prashantpogde commented on a diff in pull request #4986: HDDS-8935. [Snapshot] Fallback to full diff if getDetlaFiles from compaction DAG fails
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org