[
https://issues.apache.org/jira/browse/HDDS-7953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17744007#comment-17744007
]
Hemant Kumar commented on HDDS-7953:
------------------------------------
HDFS response:
When there is a diff:
{code}
[root@rhelnn03 ~]# hdfs snapshotDiff /user/heku snap1 snap2
Difference between snapshot snap1 and snapshot snap2 under directory /user/heku:
M .
+ ./key1
+ ./key2
[root@rhelnn03 ~]#
{code}
When src and target are same:
{code}
[root@rhelnn03 ~]# hdfs snapshotDiff /user/heku snap2 snap2
Difference between snapshot snap2 and snapshot snap2 under directory /user/heku:
[root@rhelnn03 ~]#
{code}
When there is no diff:
{code}
[root@rhelnn03 ~]# hdfs snapshotDiff /user/heku snap2 snap3
Difference between snapshot snap2 and snapshot snap3 under directory /user/heku:
[root@rhelnn03 ~]#
{code}
> [snapshot] SnapshotDiff should throw proper responses in case there are no
> differences to be listed
> ---------------------------------------------------------------------------------------------------
>
> Key: HDDS-7953
> URL: https://issues.apache.org/jira/browse/HDDS-7953
> Project: Apache Ozone
> Issue Type: Sub-task
> Components: Ozone Manager
> Reporter: Jyotirmoy Sinha
> Assignee: Siyao Meng
> Priority: Major
> Labels: ozone-snapshot, pull-request-available
>
> SnapshotDiff should throw proper responses in case there are no differences
> to be listed
> {code:java}
> [root@jspriv01-1 ~]# ozone sh snapshot snapshotDiff vol1/buck1 snap3 snap4
> Difference between snapshot snap3 and snapshot snap4:
> [root@jspriv01-1 ~]# {code}
> The message for above scenario should indicate that there are no differences
> in the 2 snapshots
> Also, for a case where the source and destination snapshot are both same, it
> should throw an error stating that both from-to snapshot cannot be same.
> Current behaviour -
> {code:java}
> [root@jspriv01-1 ~]# ozone sh snapshot snapshotDiff vol1/buck1 snap3 snap3
> Difference between snapshot snap3 and snapshot snap3:
> [root@jspriv01-1 ~] {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]