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

ASF GitHub Bot updated HDDS-6257:
---------------------------------
    Labels: pull-request-available  (was: )

> Wrong stack trace for S3 errors
> -------------------------------
>
>                 Key: HDDS-6257
>                 URL: https://issues.apache.org/jira/browse/HDDS-6257
>             Project: Apache Ozone
>          Issue Type: Bug
>          Components: S3
>            Reporter: Attila Doroszlai
>            Assignee: Attila Doroszlai
>            Priority: Major
>              Labels: pull-request-available
>
> S3 Gateway logs exception in {{S3ErrorTable.newError}}, but the stack trace 
> is wrong.
> {code:title=create-bucket --bucket 'a_b_c'}
> s3g_1       | <Error>
> s3g_1       |   <Code>InvalidBucketName</Code>
> s3g_1       |   <Message>The specified bucket is not valid.</Message>
> s3g_1       |   <Resource>a_b_c</Resource>
> s3g_1       |   <RequestId/>
> s3g_1       | </Error>
> s3g_1       |
> s3g_1       | org.apache.hadoop.ozone.s3.exception.OS3Exception
> s3g_1       |    at 
> org.apache.hadoop.ozone.s3.exception.S3ErrorTable.<clinit>(S3ErrorTable.java:88)
> s3g_1       |    at 
> org.apache.hadoop.ozone.s3.endpoint.EndpointBase.getBucket(EndpointBase.java:91)
> s3g_1       |    at 
> org.apache.hadoop.ozone.s3.endpoint.BucketEndpoint.head(BucketEndpoint.java:294)
> {code}
> {code:title=delete-bucket --bucket dont-exist}
> s3g_1       | <Error>
> s3g_1       |   <Code>NoSuchBucket</Code>
> s3g_1       |   <Message>The specified bucket does not exist</Message>
> s3g_1       |   <Resource>dont-exist</Resource>
> s3g_1       |   <RequestId/>
> s3g_1       | </Error>
> s3g_1       |
> s3g_1       | org.apache.hadoop.ozone.s3.exception.OS3Exception
> s3g_1       |    at 
> org.apache.hadoop.ozone.s3.exception.S3ErrorTable.<clinit>(S3ErrorTable.java:51)
> s3g_1       |    at 
> org.apache.hadoop.ozone.s3.endpoint.EndpointBase.getBucket(EndpointBase.java:91)
> s3g_1       |    at 
> org.apache.hadoop.ozone.s3.endpoint.BucketEndpoint.head(BucketEndpoint.java:294)
> {code}
> Note that both errors have the same stack trace.  It always points to the 
> operation that first accessed {{S3ErrorTable}} class (i.e. the one that 
> triggered the first error, in this case a {{head-bucket}} operation).



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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

Reply via email to