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 "Colin Patrick McCabe (JIRA)" <ji...@apache.org> on 2013/10/04 04:12:47 UTC

[jira] [Resolved] (HADOOP-9877) Fix listing of snapshot directories in globStatus

     [ https://issues.apache.org/jira/browse/HADOOP-9877?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Colin Patrick McCabe resolved HADOOP-9877.
------------------------------------------

       Resolution: Duplicate
    Fix Version/s: 2.1.2-beta

> Fix listing of snapshot directories in globStatus
> -------------------------------------------------
>
>                 Key: HADOOP-9877
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9877
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 2.1.0-beta
>            Reporter: Binglin Chang
>            Assignee: Binglin Chang
>             Fix For: 2.1.2-beta
>
>         Attachments: HADOOP-9877-branch2.patch, HADOOP-9877.v1.patch, HADOOP-9877.v2.patch, HADOOP-9877.v3.patch, HADOOP-9877.v4.patch, HADOOP-9877.v5.patch
>
>
> {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 was sent by Atlassian JIRA
(v6.1#6144)