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

Sean Mackrory commented on HADOOP-11621:
----------------------------------------

Although I do think we should be consistent, I'm uncomfortable with the 
"irrespective of content" notion. If we know some tools create 1-byte directory 
markers, maybe change the check to <=1 instead of == 0? Either way, I just saw 
a case of this happening, so I might submit a patch soon :)

> s3a doesn't consider blobs with trailing / and content-length >0 as 
> directories
> -------------------------------------------------------------------------------
>
>                 Key: HADOOP-11621
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11621
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/s3
>    Affects Versions: 2.7.0
>            Reporter: Denis Jannot
>            Priority: Major
>
> When creating a directory using the AWS Management Console, the 
> content-length is set to 0 and s3a works fine.
> When creating a directory using other tools, like S3Browse, the 
> content-length is set to 1 and s3a doesn't work:
> S3AFileSystem: Found file (with /): real file? should not happen: dir1



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to