You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Lei (Eddy) Xu (JIRA)" <ji...@apache.org> on 2015/05/05 00:27:06 UTC

[jira] [Updated] (HADOOP-11918) Listing an empty s3a root directory throws FileNotFound.

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

Lei (Eddy) Xu updated HADOOP-11918:
-----------------------------------
    Attachment: HADOOP-11918.000.patch

If the input directory is root and there is no sub-files/directories found, returns a fake root directory {{FileStatus}} instead. Added a test to enforce it: the test would throw {{FileNotFoundException}} without this fix.

> Listing an empty s3a root directory throws FileNotFound.
> --------------------------------------------------------
>
>                 Key: HADOOP-11918
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11918
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 2.7.0
>            Reporter: Lei (Eddy) Xu
>            Assignee: Lei (Eddy) Xu
>            Priority: Minor
>              Labels: s3
>         Attachments: HADOOP-11918.000.patch
>
>
> With an empty s3 bucket and run
> {code}
> $ hadoop fs -D... -ls s3a://hdfs-s3a-test/
> 15/05/04 15:21:34 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
> ls: `s3a://hdfs-s3a-test/': No such file or directory
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)