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

Abraham Fine commented on HADOOP-15140:
---------------------------------------

[~steve_l] I wanted to confirm what the expected behavior should be here before 
I submit a patch. Let me know if you agree.

The first thing we want to do here is make sure that in the case when a path is 
actually "non-absolute", we log the path in the error message.

Secondly, we need to determine how to handle {{"s3a://bucket"}}. My 
understanding is that since we do not have a {{/}} at the end of the URI, this 
is a URI without a path ({{bucket}} is the authority) and an exception should 
be thrown. I think the {{fileStatus path must be non-null}} message would be 
appropriate. Or is it the case that we want to treat {{"s3a://bucket"}} like 
{{"s3a://bucket/"}} and not throw an exception?

> S3guard mistakes root URI without / as non-absolute path
> --------------------------------------------------------
>
>                 Key: HADOOP-15140
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15140
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/s3
>    Affects Versions: 3.0.0
>            Reporter: Steve Loughran
>            Assignee: Abraham Fine
>
> If you call {{getFileStatus("s3a://bucket")}} then S3Guard will throw an 
> exception in putMetadata, as it mistakes the empty path for "non-absolute 
> path"



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to