Skip to content

Commit d274f77

Browse files
HADOOP-19046. S3A: update AWS V2 SDK to 2.23.5; v1 to 1.12.599 (apache#6467)
This update ensures that the timeout set in fs.s3a.connection.request.timeout is passed down to calls to CreateSession made in the AWS SDK to get S3 Express session tokens. Contributed by Steve Loughran
1 parent 76691df commit d274f77

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

LICENSE-binary

+2-2
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ com.aliyun:aliyun-java-sdk-kms:2.11.0
215215
com.aliyun:aliyun-java-sdk-ram:3.1.0
216216
com.aliyun:aliyun-java-sdk-sts:3.0.0
217217
com.aliyun.oss:aliyun-sdk-oss:3.13.2
218-
com.amazonaws:aws-java-sdk-bundle:1.12.565
218+
com.amazonaws:aws-java-sdk-bundle:1.12.599
219219
com.cedarsoftware:java-util:1.9.0
220220
com.cedarsoftware:json-io:2.5.1
221221
com.fasterxml.jackson.core:jackson-annotations:2.12.7
@@ -363,7 +363,7 @@ org.objenesis:objenesis:2.6
363363
org.xerial.snappy:snappy-java:1.1.10.4
364364
org.yaml:snakeyaml:2.0
365365
org.wildfly.openssl:wildfly-openssl:1.1.3.Final
366-
software.amazon.awssdk:bundle:jar:2.21.41
366+
software.amazon.awssdk:bundle:jar:2.23.5
367367

368368

369369
--------------------------------------------------------------------------------

NOTICE-binary

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ available from http://www.digip.org/jansson/.
6666

6767

6868
AWS SDK for Java
69-
Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
69+
Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
7070

7171
This product includes software developed by
7272
Amazon Technologies, Inc (http://www.amazon.com/).

hadoop-project/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@
186186
<exec-maven-plugin.version>1.3.1</exec-maven-plugin.version>
187187
<make-maven-plugin.version>1.0-beta-1</make-maven-plugin.version>
188188
<surefire.fork.timeout>900</surefire.fork.timeout>
189-
<aws-java-sdk.version>1.12.565</aws-java-sdk.version>
190-
<aws-java-sdk-v2.version>2.21.41</aws-java-sdk-v2.version>
189+
<aws-java-sdk.version>1.12.599</aws-java-sdk.version>
190+
<aws-java-sdk-v2.version>2.23.5</aws-java-sdk-v2.version>
191191
<aws.eventstream.version>1.0.1</aws.eventstream.version>
192192
<hsqldb.version>2.7.1</hsqldb.version>
193193
<frontend-maven-plugin.version>1.11.2</frontend-maven-plugin.version>

hadoop-tools/hadoop-aws/src/site/markdown/tools/hadoop-aws/testing.md

+10-3
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,7 @@ as it may take a couple of SDK updates before it is ready.
11421142
1. Identify the latest AWS SDK [available for download](https://aws.amazon.com/sdk-for-java/).
11431143
1. Create a private git branch of trunk for JIRA, and in
11441144
`hadoop-project/pom.xml` update the `aws-java-sdk.version` to the new SDK version.
1145-
1. Update AWS SDK versions in NOTICE.txt.
1145+
1. Update AWS SDK versions in NOTICE.txt and LICENSE.binary
11461146
1. Do a clean build and rerun all the `hadoop-aws` tests.
11471147
This includes the `-Pscale` set, with a role defined for the assumed role tests.
11481148
in `fs.s3a.assumed.role.arn` for testing assumed roles,
@@ -1164,11 +1164,18 @@ your IDE or via maven.
11641164
`mvn dependency:tree -Dverbose > target/dependencies.txt`.
11651165
Examine the `target/dependencies.txt` file to verify that no new
11661166
artifacts have unintentionally been declared as dependencies
1167-
of the shaded `aws-java-sdk-bundle` artifact.
1167+
of the shaded `software.amazon.awssdk:bundle:jar` artifact.
11681168
1. Run a full AWS-test suite with S3 client-side encryption enabled by
11691169
setting `fs.s3a.encryption.algorithm` to 'CSE-KMS' and setting up AWS-KMS
11701170
Key ID in `fs.s3a.encryption.key`.
11711171

1172+
The dependency chain of the `hadoop-aws` module should be similar to this, albeit
1173+
with different version numbers:
1174+
```
1175+
[INFO] +- org.apache.hadoop:hadoop-aws:jar:3.4.0-SNAPSHOT:compile
1176+
[INFO] | +- software.amazon.awssdk:bundle:jar:2.23.5:compile
1177+
[INFO] | \- org.wildfly.openssl:wildfly-openssl:jar:1.1.3.Final:compile
1178+
```
11721179
### Basic command line regression testing
11731180

11741181
We need a run through of the CLI to see if there have been changes there
@@ -1365,5 +1372,5 @@ Don't be surprised if this happens, don't worry too much, and,
13651372
while that rollback option is there to be used, ideally try to work forwards.
13661373
13671374
If the problem is with the SDK, file issues with the
1368-
[AWS SDK Bug tracker](https://github.com/aws/aws-sdk-java/issues).
1375+
[AWS V2 SDK Bug tracker](https://github.com/aws/aws-sdk-java-v2/issues).
13691376
If the problem can be fixed or worked around in the Hadoop code, do it there too.

0 commit comments

Comments
 (0)