You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2020/12/17 15:13:00 UTC

[jira] [Resolved] (ARROW-10942) [C++] S3FileSystem::Impl::IsEmptyDirectory fails on Amazon S3

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

Antoine Pitrou resolved ARROW-10942.
------------------------------------
    Fix Version/s: 3.0.0
       Resolution: Fixed

Issue resolved by pull request 8941
[https://github.com/apache/arrow/pull/8941]

> [C++] S3FileSystem::Impl::IsEmptyDirectory fails on Amazon S3
> -------------------------------------------------------------
>
>                 Key: ARROW-10942
>                 URL: https://issues.apache.org/jira/browse/ARROW-10942
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++
>    Affects Versions: 2.0.0
>            Reporter: Juan Galvez
>            Assignee: Antoine Pitrou
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.0.0
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> Running S3FileSystem::GetFileInfo() where the path is in the form "bucket-name/dir-name" and this is a bucket on AWS S3, it throws the following error:
> "When reading information for key 'dir-name' in bucket 'bucket-name': AWS Error [code 15]: No response body.
> I tracked down the issue to the IsEmptyDirectory method, and noticed that removing kSep from this line:
>  req.SetKey(ToAwsString(key) + kSep);
> fixes the issue.
> However, I don't know why kSep is needed in the first place so I'm not sure what a good solution would be.
>  Also, the key variable on entering IsEmptyDirectory is just the name of the directory (doesn't have separators).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)