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 2019/08/01 09:45:00 UTC

[jira] [Commented] (HADOOP-16478) S3Guard bucket-info fails if the bucket location is denied to the caller

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

Steve Loughran commented on HADOOP-16478:
-----------------------------------------

Two options

* S3AFileSystem.getBucketLocation (and the StoreContext) return "" if there is no location, document that and have the clients deal with that. Good: no need for try/catch. Bad: still need error handling, and if the goal is raise an exception, the stack is lost (example: Dynamo)
* Make clear in the javadocs for the API this error must be handled
* And do that in the bucket info call
* +review other places

> S3Guard bucket-info fails if the bucket location is denied to the caller
> ------------------------------------------------------------------------
>
>                 Key: HADOOP-16478
>                 URL: https://issues.apache.org/jira/browse/HADOOP-16478
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/s3
>    Affects Versions: 3.2.0
>            Reporter: Steve Loughran
>            Priority: Major
>
> IF you call "Hadoop s3guard bucket info" on a bucket and you don't have permission to list the bucket location, then you get a stack trace, with all other diagnostics being missing.
> Preferred: catch the exception, warn its unknown and only log@ debug



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

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