You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2022/02/03 13:04:00 UTC
[jira] [Created] (HDDS-6257) Wrong stack trace for S3 errors
Attila Doroszlai created HDDS-6257:
--------------------------------------
Summary: 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
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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org