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

Ahmar Suhail edited comment on HADOOP-19513 at 3/24/25 8:09 PM:
----------------------------------------------------------------

a lot of these tests fail for an S3 Express bucket too, as getBucketLocation() 
is not allowed..

 
org.apache.hadoop.fs.s3a.AWSUnsupportedFeatureException: getBucketLocation() on 
ahmar-sdk-upgrade-cse-kms--use1-az4--x-s3: 
software.amazon.awssdk.services.s3.model.S3Exception: The specified method is 
not allowed against this resource. (BgwjiHiSxWSjcmp2qn):MethodNotAllowed: The 
specified method is not allowed against this resource. (Service: S3, Status 
Code: 405, Request ID: 0128520F4A010195C9C4CF2005004583203BAAA2, Extended 
Request ID: BgwjiHiSxWSjcmp2qn)
 
at org.apache.hadoop.fs.s3a.S3AUtils.translateException(S3AUtils.java:305)
at org.apache.hadoop.fs.s3a.Invoker.once(Invoker.java:124)
at org.apache.hadoop.fs.s3a.Invoker.lambda$retry$4(Invoker.java:376)
at org.apache.hadoop.fs.s3a.Invoker.retryUntranslated(Invoker.java:468)
at org.apache.hadoop.fs.s3a.Invoker.retry(Invoker.java:372)
at org.apache.hadoop.fs.s3a.Invoker.retry(Invoker.java:347)
 


was (Author: JIRAUSER283484):
a lot of these tests fail for an S3 Express bucket too

 

> S3A: ITestS3AEndpointRegion fails when using with access points
> ---------------------------------------------------------------
>
>                 Key: HADOOP-19513
>                 URL: https://issues.apache.org/jira/browse/HADOOP-19513
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/s3
>    Affects Versions: 3.5.0, 3.4.2
>            Reporter: Ahmar Suhail
>            Priority: Major
>
> failures are of the form:
> {{software.amazon.awssdk.core.exception.SdkClientException: Invalid 
> configuration: region from ARN `us-east-1` does not match client region 
> `us-east-2` and UseArnRegion is `false`}}
> {{ }}
> {{at 
> software.amazon.awssdk.core.exception.SdkClientException$BuilderImpl.build(SdkClientException.java:111)}}
> {{ }}
> {{happens because when making the head request in the tests, we do }}
> {{HeadBucketRequest.builder().bucket(getFileSystem().getBucket()).build();}}
> {{ }}
> {{when using access points, bucket is 
> "arn:aws:s3:us-east-1:xxxx:accesspoint/test-bucket", so client gets the 
> region from the ARN which does not match the configured region. }}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to