[ 
https://issues.apache.org/jira/browse/HDFS-11481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16394030#comment-16394030
 ] 

Yongjun Zhang commented on HDFS-11481:
--------------------------------------

Hi [~mavinmar...@gmail.com],

I did some study. Would you please share:
 # which release you observed the issue reported here?
 # Did you verify that the patch you created solve the problem reported here 
(snapshotDiff on /.reserved/raw)?

The reason I was asking is, the change you did in the patch here simply to 
allow setSnapshot to take /.reserved/raw kind of path, but it did not seem to 
do anything with snapshotDiff. I suspect the issue is fixed by HDFS-10997 but 
yet to find out.  Seems to me that resolvePath might be the way to go.

Thanks.

--Yongjun

> hdfs snapshotDiff /.reserved/raw/... fails on snapshottable directories
> -----------------------------------------------------------------------
>
>                 Key: HDFS-11481
>                 URL: https://issues.apache.org/jira/browse/HDFS-11481
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs-client
>    Affects Versions: 2.6.0
>            Reporter: Mavin Martin
>            Assignee: Mavin Martin
>            Priority: Minor
>         Attachments: HDFS-11481-branch-2.6.0.001.patch, HDFS-11481.001.patch, 
> HDFS-11481.002.patch
>
>
> Successful command:
> {code}
> #> hdfs snapshotDiff /tmp/dir s1 s2
> Difference between snapshot s1 and snapshot s2 under directory /tmp/dir:
> M       .
> +       ./file1.txt
> {code}
> Unsuccessful command:
> {code}
> #> hdfs snapshotDiff /.reserved/raw/tmp/dir s1 s2
> snapshotDiff: Directory does not exist: /.reserved/raw/tmp/dir
> {code}
> Prefixing with raw path should run successfully and return same output.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to