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

ASF GitHub Bot commented on HADOOP-18696:
-----------------------------------------

steveloughran commented on code in PR #5557:
URL: https://github.com/apache/hadoop/pull/5557#discussion_r1168410522


##########
hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/ITestS3ABucketExistence.java:
##########
@@ -189,6 +190,17 @@ public void testAccessPointRequired() throws Exception {
         () -> FileSystem.get(uri, configuration));
   }
 
+  /**
+   * Create a configuration which has bucket probe 2 and the endpoint.region
+   * option set to "eu-west-1" to match that of the ARNs generated.
+   * @return a configuration for tests which are expected to fail in specific 
ways.
+   */
+  private Configuration createArnConfiguration() {
+    Configuration configuration = createConfigurationWithProbe(2);
+    configuration.set(AWS_REGION, "eu-west-1");
+    return configuration;
+  }

Review Comment:
   noted





> S3A ITestS3ABucketExistence access point test failure
> -----------------------------------------------------
>
>                 Key: HADOOP-18696
>                 URL: https://issues.apache.org/jira/browse/HADOOP-18696
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/s3
>    Affects Versions: 3.4.0
>            Reporter: Steve Loughran
>            Priority: Major
>              Labels: pull-request-available
>
> this is inevitably me having some config option in the way; just need to find 
> out what and clear it for the test case so the probes are to the same 
> region/endpont as the mock bucket
> {code}
> [ERROR] 
> testAccessPointProbingV2(org.apache.hadoop.fs.s3a.ITestS3ABucketExistence)  
> Time elapsed: 1.748 s  <<< ERROR!
> java.lang.IllegalArgumentException: The region field of the ARN being passed 
> as a bucket parameter to an S3 operation does not match the region the client 
> was configured with. Provided region: 'eu-west-1'; client region: 'eu-west-2'.
>         at 
> com.amazonaws.services.s3.AmazonS3Client.validateIsTrue(AmazonS3Client.java:6588)
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to