hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-16478) S3Guard bucket-info fails if the bucket location is denied to the caller
Date Thu, 01 Aug 2019 09:45:00 GMT

    [ 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


Mime
View raw message