virajjasani commented on code in PR #6479: URL: https://github.com/apache/hadoop/pull/6479#discussion_r1470040175
########## hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/DefaultS3ClientFactory.java: ########## @@ -289,17 +290,35 @@ private <BuilderT extends S3BaseClientBuilder<BuilderT, ClientT>, ClientT> void builder.fipsEnabled(fipsEnabled); if (endpoint != null) { + boolean overrideEndpoint = true; checkArgument(!fipsEnabled, "%s : %s", ERROR_ENDPOINT_WITH_FIPS, endpoint); - builder.endpointOverride(endpoint); // No region was configured, try to determine it from the endpoint. if (region == null) { - region = getS3RegionFromEndpoint(parameters.getEndpoint()); + boolean endpointEndsWithCentral = Review Comment: > What if we never override if endpoint is s3.amazonaws.com? That sounds right, let me test with various combinations of endpoint and region before making the changes: e.g. 1. endpoint central and region null 2. endpoint central and region anything other than us-east-2 3. endpoint central and region us-east-2 4. endpoint null and region null 5. endpoint s3-us-east-2.amazonaws.com and region us-east-2 (and null) 6. endpoint s3-us-east-1.amazonaws.com and region us-east-1 (and null) -- 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: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org