This is an automated email from the ASF dual-hosted git repository.

stevel pushed a commit to branch branch-3.4
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/branch-3.4 by this push:
     new e4d02cc7aaa HADOOP-19037. AWS SDK v2: ITestS3AConfiguration failing 
with region problems (#6486)
e4d02cc7aaa is described below

commit e4d02cc7aaa64451a4bf480b96b1d38909f0dfff
Author: Shintaro Onuma <[email protected]>
AuthorDate: Fri Oct 3 19:50:26 2025 +0100

    HADOOP-19037. AWS SDK v2: ITestS3AConfiguration failing with region 
problems (#6486)
    
    Stop test STS client relying on SDK region resolution
    
    Contributed by Shintaro Onuma <[email protected]>
---
 .../java/org/apache/hadoop/fs/s3a/ITestS3AConfiguration.java     | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git 
a/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/ITestS3AConfiguration.java
 
b/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/ITestS3AConfiguration.java
index 74b3b5d3075..cfd8af512b2 100644
--- 
a/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/ITestS3AConfiguration.java
+++ 
b/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/ITestS3AConfiguration.java
@@ -85,6 +85,10 @@ public class ITestS3AConfiguration extends 
AbstractHadoopTestBase {
   private static final String AP_ILLEGAL_ACCESS =
       "ARN of type accesspoint cannot be passed as a bucket";
 
+  private static final String US_EAST_1 = "us-east-1";
+
+  private static final String STS_ENDPOINT = "sts.us-east-1.amazonaws.com";
+
   private Configuration conf;
   private S3AFileSystem fs;
 
@@ -623,8 +627,9 @@ public void testS3SpecificSignerOverride() throws Exception 
{
 
     final String bucket = fs.getBucket();
     StsClient stsClient =
-        STSClientFactory.builder(config, bucket, new 
AnonymousAWSCredentialsProvider(), "",
-            "").build();
+        STSClientFactory.builder(config, bucket, new 
AnonymousAWSCredentialsProvider(),
+                STS_ENDPOINT, US_EAST_1).build();
+
 
     intercept(StsException.class, "", () ->
         stsClient.getSessionToken());


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

Reply via email to