symious opened a new pull request #3167: URL: https://github.com/apache/ozone/pull/3167
## What changes were proposed in this pull request? For many errors, S3g return a fuzzy error log which are not easy for users and maintainers to find the root cause of the error. The current error is like follows: ``` An error occurred (500) when calling the ListBuckets operation (reached max retries: 4): Internal Server Error ``` This ticket is to fix this issue and return more detailed messages. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-6419 ## How was this patch tested? Test example 1. List bucket with empty auth. * Clean the key and secret in ~/.aws/credentials * Run the command of `aws s3api --endpoint=http://localhost:9878 list-buckets` * Before fix the return error is `An error occurred () when calling the ListBuckets operation:` * After fix the return error is `An error occurred (AuthorizationHeaderMalformed) when calling the ListBuckets operation: The authorization header you provided is invalid.` 2. List bucket with OM offline * Start a standalone S3g and stop OM * Change the config of `ozone.client.failover.max.attempts` to 1 to skip failover * Run the command of `aws s3api --endpoint=http://localhost:9878 list-buckets` * Before fix the return error is `An error occurred (500) when calling the ListBuckets operation (reached max retries: 4): Internal Server Error` * After fix the return error is `An error occurred (InternalError) when calling the ListBuckets operation (reached max retries: 4): Call From Desktop.localdomain/127.0.1.1 to localhost:9862 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
