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 "Steve Loughran (Jira)" <ji...@apache.org> on 2023/11/10 11:45:00 UTC

[jira] [Commented] (HADOOP-18968) S3A FileSystem does not correctly list empty directories after HADOOP-17199

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

Steve Loughran commented on HADOOP-18968:
-----------------------------------------

+also how did you create that empty dir? mkdirs or create then delete a file underneath?

> S3A FileSystem does not correctly list empty directories after HADOOP-17199
> ---------------------------------------------------------------------------
>
>                 Key: HADOOP-18968
>                 URL: https://issues.apache.org/jira/browse/HADOOP-18968
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 3.2.4
>            Reporter: Max  Xie
>            Priority: Major
>         Attachments: image-2023-11-10-16-36-53-337.png
>
>
> After HADOOP-17199, s3a filesystem dose not  correctly ls empty directories.   For example. 
> Before HADOOP-17199
> ```
> hdfs dfs -ls s3a://testbucket/dir/empty
>  
> // work right
> ```
>  
> After HADOOP-17199
> ```
> hdfs dfs -ls s3a://testbucket/dir/empty
> ls: `s3a://testbucket/dir/empty': No such file or directory
>  
> // wrong ouput
> ```
>  
> After Check the code, s3a empty folder don't have prefixes Or objects, it whil throw FIleNotFouldException.
> !image-2023-11-10-16-36-53-337.png!  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org