You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Binglin Chang (JIRA)" <ji...@apache.org> on 2013/08/15 20:27:49 UTC

[jira] [Created] (HADOOP-9877) hadoop fsshell can not ls .snapshot dir after HADOOP-9817

Binglin Chang created HADOOP-9877:
-------------------------------------

             Summary: hadoop fsshell can not ls .snapshot dir after HADOOP-9817
                 Key: HADOOP-9877
                 URL: https://issues.apache.org/jira/browse/HADOOP-9877
             Project: Hadoop Common
          Issue Type: Bug
            Reporter: Binglin Chang
            Assignee: Binglin Chang


{code}
decster:~/hadoop> bin/hadoop fs -ls "/foo/.snapshot"
13/08/16 01:17:22 INFO hdfs.DFSClient: +++++ listPath(/)
13/08/16 01:17:22 INFO hdfs.DFSClient: +++++ listPath(/foo)
ls: `/foo/.snapshot': No such file or directory
{code}

HADOOP-9817 refactor some globStatus code, but forgot to handle special case that .snapshot dir is not show up in listStatus but exists, so we need to explicitly check path existence using getFileStatus, rather than depending on listStatus results.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira