smengcl commented on code in PR #4568:
URL: https://github.com/apache/ozone/pull/4568#discussion_r1179494241
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OmSnapshotManager.java:
##########
@@ -558,10 +584,14 @@ public SnapshotDiffResponse getSnapshotDiffReport(final
String volume,
final String fsKey = SnapshotInfo.getTableKey(volume, bucket,
fromSnapshot);
final String tsKey = SnapshotInfo.getTableKey(volume, bucket, toSnapshot);
try {
+ // Block SnapDiff if either one of the snapshot is not active.
+ checkSnapshotActive(fsKey);
Review Comment:
nice
--
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]