Skip to content

HADOOP-18820. Cut AWS v1 support #5872

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

steveloughran
Copy link
Contributor

@steveloughran steveloughran commented Jul 21, 2023

Part of HADOOP-18073 Upgrade AWS SDK to v2

  • downgrade v1 sdk to "provided"
  • only allowed in one package in production code
  • use isolated classes and reflection games to allow rest of module to work without it when instantiating credential providers.
  • tests updated as appropriate
  • remapping of standard aws v1 credential providers to v2 classnames prior to instantiation.

How was this patch tested?

Integration tests in progress

For code changes:

  • Does the title or this PR starts with the corresponding JIRA issue id (e.g. 'HADOOP-17799. Your PR title ...')?
  • Object storage: have the integration tests been executed and the endpoint declared according to the connector-specific documentation?
  • If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
  • If applicable, have you updated the LICENSE, LICENSE-binary, NOTICE-binary files?

* downgrade v1 sdk to "provided"
* only allowed in one package in production code
* use isolated classes and reflection games to allow rest of module to work
  without it when instantiating credential providers.
* tests updated as appropriate
* remapping of standard aws v1 credential providers to v2 classnames
  prior to instantiation.

Change-Id: I0ab248e71e696b638420c09afc2b141420aaf596
Copy link
Contributor

@ahmarsuhail ahmarsuhail left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, +1. couple of minor comments (unused variables & javadocs)

* lots of improvements in the binding
* autocloseable/closeable passdown as far as wrapped v1
* more diagnostics on provider classes, including useful toString() values
* more tests
* all token tests happy

Change-Id: I4e6151ba6c35e280203dc6a705b6ed1fba7de551
* split v2 and v1 credential test suites
* rename AwsCredentialListProvider to CredentialProviderListFactory
  as it was too close to AWSCredentialProviderList.
* yetus feedback
* review feedback
* more use of InstantiationException over more generic IOEs.

Side issue: wondering if we should cut all the S3xLoginHelper stuff?
been a long time since s3n existed and we've had to tell people to stop
it.

Change-Id: I405dc1793b39d9ee0a2f47c0600c2a3040154d75
IDE had warned of use of non-final resolveCredentials()
call in superclass, so cut it
...which broke ITestAssumeRole badly
...so reverted, but marked class final
+InstantiationIOException is now a subclass of PathIOE;
 takes URI of filesystem for more details.

+fix ITestS3ABucketExistence by clearing endpoint and region
 bucket settings.

Change-Id: I37edc23f76d7be95cd055dcd65d0fdb17e6992f2
@steveloughran
Copy link
Contributor Author

current dependency setup

[INFO] +- com.amazonaws:aws-java-sdk-core:jar:1.12.367:provided
[INFO] |  +- commons-logging:commons-logging:jar:1.1.3:provided
[INFO] |  +- software.amazon.ion:ion-java:jar:1.0.2:provided
[INFO] |  +- com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:jar:2.12.7:provided
[INFO] |  \- joda-time:joda-time:jar:2.8.1:provided
[INFO] +- software.amazon.awssdk:bundle:jar:2.19.12:compile
[INFO] |  \- software.amazon.eventstream:eventstream:jar:1.0.1:compile

sdk core stuff is being involved, which isn't needed at all.

I'm pulling in the changes of #5739 to align dependencies, then make sure more are stripped.

This gives

[INFO] +- com.amazonaws:aws-java-sdk-core:jar:1.12.367:provided
[INFO] +- software.amazon.awssdk:bundle:jar:2.19.12:compile
[INFO] +- software.amazon.awssdk.crt:aws-crt:jar:0.21.0:test

@ahmarsuhail what do we do about the crt library? is it in bundle.jar? is it something to tag as provided and document?

…libraries

* explicit jackson declaration in hadoop-aws
* cut jackson, eventstream and ion from aws SDK bundle dependencies
* sdk-core excludes everything, as only the core interfaces/classes are
  needed to compile against
* aws-crt is test scope. not sure about that.

Change-Id: I47f6e10d42c8067df8255eca69799469d7252480
@steveloughran
Copy link
Contributor Author

hi, needs a bit more review/upvote. with this patch, we still support v1 providers if people set up the classpath, but we map the standard ones to v2 equivalents.

* HADOOP-18812 list aws SDK v2 libraries in LICENSE-binary
* all imports of aws-java-sdk-core excluded
* javadoc and some other checkstyle issues reported in builds addressed
  (HADOOP-18819)

Change-Id: I8043b157f18c325fa9599bdc4272f655307c0b6a
@steveloughran
Copy link
Contributor Author

the current pom changes means that s3 select operations fail


[ERROR] testReadLandsatRecordsNoMatch(org.apache.hadoop.fs.s3a.select.ITestS3SelectLandsat)  Time elapsed: 147.958 s  <<< ERROR!
java.io.IOException: java.lang.NoClassDefFoundError: software/amazon/eventstream/MessageDecoder
        at org.apache.hadoop.fs.s3a.select.SelectObjectContentHelper.select(SelectObjectContentHelper.java:75)
        at org.apache.hadoop.fs.s3a.WriteOperationHelper.lambda$select$10(WriteOperationHelper.java:660)
        at org.apache.hadoop.fs.store.audit.AuditingFunctions.lambda$withinAuditSpan$0(AuditingFunctions.java:62)
        at org.apache.hadoop.fs.s3a.Invoker.once(Invoker.java:122)

given that the feature has never worked properly through MR/spark jobs and nobody has ever filed a bug report against the feature, I'm not sure it gets used at all.

we should be ruthless here; cut it?

Eventstream 1.0.1 JAR is used in tests but not in runtime;
this is documented.
* S3 Select documents move feature from "experimental" to "deprecated"
* detail on why it doesn't work on big files

Change-Id: I5b34526c97736bba621e897d1cf5b966a6f3af8b
+ update troubleshooting to new package names

Change-Id: Ifbba1bf7188518aff9f58e911534ff600b958ad6
@apache apache deleted a comment from hadoop-yetus Jul 28, 2023
@apache apache deleted a comment from hadoop-yetus Jul 28, 2023
@apache apache deleted a comment from hadoop-yetus Jul 28, 2023
@apache apache deleted a comment from hadoop-yetus Jul 28, 2023
@apache apache deleted a comment from hadoop-yetus Jul 28, 2023
@apache apache deleted a comment from hadoop-yetus Jul 28, 2023
@apache apache deleted a comment from hadoop-yetus Jul 28, 2023
Copy link
Contributor

@mukund-thakur mukund-thakur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Big patch. Reviewed the prod code. Looks good to me overall. Will check test code later

Change-Id: Ie4c14a041595e17cc0e64ff65c2a8db6b60c2316
Change-Id: I0e4a27ad7b32667c97d914fc8bd6ee52e755bf4c
@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 37s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+0 🆗 xmllint 0m 0s xmllint was not available.
+0 🆗 markdownlint 0m 0s markdownlint was not available.
+0 🆗 shelldocs 0m 0s Shelldocs was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 11 new or modified test files.
_ feature-HADOOP-18073-s3a-sdk-upgrade Compile Tests _
+0 🆗 mvndep 14m 36s Maven dependency ordering for branch
+1 💚 mvninstall 22m 4s feature-HADOOP-18073-s3a-sdk-upgrade passed
+1 💚 compile 11m 9s feature-HADOOP-18073-s3a-sdk-upgrade passed with JDK Ubuntu-11.0.19+7-post-Ubuntu-0ubuntu120.04.1
+1 💚 compile 9m 36s feature-HADOOP-18073-s3a-sdk-upgrade passed with JDK Private Build-1.8.0_362-8u372-gaus1-0ubuntu120.04-b09
+1 💚 checkstyle 2m 32s feature-HADOOP-18073-s3a-sdk-upgrade passed
+1 💚 mvnsite 15m 36s feature-HADOOP-18073-s3a-sdk-upgrade passed
+1 💚 javadoc 6m 8s feature-HADOOP-18073-s3a-sdk-upgrade passed with JDK Ubuntu-11.0.19+7-post-Ubuntu-0ubuntu120.04.1
+1 💚 javadoc 5m 18s feature-HADOOP-18073-s3a-sdk-upgrade passed with JDK Private Build-1.8.0_362-8u372-gaus1-0ubuntu120.04-b09
+0 🆗 spotbugs 0m 17s branch/hadoop-project no spotbugs output file (spotbugsXml.xml)
-1 ❌ spotbugs 0m 42s /branch-spotbugs-hadoop-tools_hadoop-aws-warnings.html hadoop-tools/hadoop-aws in feature-HADOOP-18073-s3a-sdk-upgrade has 1 extant spotbugs warnings.
-1 ❌ spotbugs 19m 15s /branch-spotbugs-root-warnings.html root in feature-HADOOP-18073-s3a-sdk-upgrade has 1 extant spotbugs warnings.
+1 💚 shadedclient 41m 11s branch has no errors when building and testing our client artifacts.
-0 ⚠️ patch 41m 30s Used diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 25s Maven dependency ordering for patch
+1 💚 mvninstall 20m 53s the patch passed
+1 💚 compile 10m 7s the patch passed with JDK Ubuntu-11.0.19+7-post-Ubuntu-0ubuntu120.04.1
+1 💚 javac 10m 7s the patch passed
+1 💚 compile 9m 31s the patch passed with JDK Private Build-1.8.0_362-8u372-gaus1-0ubuntu120.04-b09
+1 💚 javac 9m 31s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
-0 ⚠️ checkstyle 2m 22s /results-checkstyle-root.txt root: The patch generated 1 new + 12 unchanged - 12 fixed = 13 total (was 24)
+1 💚 mvnsite 9m 25s the patch passed
+1 💚 shellcheck 0m 0s No new issues.
+1 💚 javadoc 5m 54s the patch passed with JDK Ubuntu-11.0.19+7-post-Ubuntu-0ubuntu120.04.1
-1 ❌ javadoc 4m 43s /patch-javadoc-root-jdkPrivateBuild-1.8.0_362-8u372-gaus1-0ubuntu120.04-b09.txt root in the patch failed with JDK Private Build-1.8.0_362-8u372-gaus1-0ubuntu120.04-b09.
+0 🆗 spotbugs 0m 17s hadoop-project has no data from spotbugs
+1 💚 shadedclient 38m 15s patch has no errors when building and testing our client artifacts.
_ Other Tests _
-1 ❌ unit 664m 3s /patch-unit-root.txt root in the patch passed.
+1 💚 asflicense 1m 21s The patch does not generate ASF License warnings.
903m 35s
Reason Tests
Failed junit tests hadoop.yarn.server.timelineservice.security.TestTimelineAuthFilterForV2
hadoop.mapreduce.v2.TestMRJobs
hadoop.mapreduce.v2.TestUberAM
hadoop.mapreduce.v2.TestMRJobsWithProfiler
hadoop.hdfs.server.namenode.ha.TestObserverNode
hadoop.fs.http.client.TestHttpFSFWithWebhdfsFileSystem
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5872/9/artifact/out/Dockerfile
GITHUB PR #5872
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint spotbugs checkstyle markdownlint shellcheck shelldocs
uname Linux 02c00e14ac69 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision feature-HADOOP-18073-s3a-sdk-upgrade / b73afe2
Default Java Private Build-1.8.0_362-8u372-gaus1-0ubuntu120.04-b09
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.19+7-post-Ubuntu-0ubuntu120.04.1 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_362-8u372-gaus1-0ubuntu120.04-b09
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5872/9/testReport/
Max. process+thread count 3732 (vs. ulimit of 5500)
modules C: hadoop-project hadoop-tools/hadoop-aws . U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5872/9/console
versions git=2.25.1 maven=3.6.3 spotbugs=4.2.2 shellcheck=0.7.0
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

Change-Id: I042b5036c4ad0505ea3c1d7a5f96ad35171104a2
@steveloughran
Copy link
Contributor Author

created https://issues.apache.org/jira/browse/YARN-11546 for the TestTimelineAuthFilterForV2 failure

* use intercept() and InstantiationIOException where appropriate.
* change method names to distinguish them better.
* add test to verify that the static create() method is called.

Change-Id: I88e6c4eed6153861b6bd83300e6c484eb4dda08e
@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 30s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+0 🆗 xmllint 0m 0s xmllint was not available.
+0 🆗 markdownlint 0m 0s markdownlint was not available.
+0 🆗 shelldocs 0m 0s Shelldocs was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 27 new or modified test files.
_ feature-HADOOP-18073-s3a-sdk-upgrade Compile Tests _
+0 🆗 mvndep 14m 36s Maven dependency ordering for branch
+1 💚 mvninstall 20m 4s feature-HADOOP-18073-s3a-sdk-upgrade passed
+1 💚 compile 10m 34s feature-HADOOP-18073-s3a-sdk-upgrade passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04
+1 💚 compile 9m 40s feature-HADOOP-18073-s3a-sdk-upgrade passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
+1 💚 checkstyle 2m 24s feature-HADOOP-18073-s3a-sdk-upgrade passed
+1 💚 mvnsite 14m 18s feature-HADOOP-18073-s3a-sdk-upgrade passed
+1 💚 javadoc 5m 58s feature-HADOOP-18073-s3a-sdk-upgrade passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04
+1 💚 javadoc 5m 6s feature-HADOOP-18073-s3a-sdk-upgrade passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
+0 🆗 spotbugs 0m 17s branch/hadoop-project no spotbugs output file (spotbugsXml.xml)
-1 ❌ spotbugs 0m 41s /branch-spotbugs-hadoop-tools_hadoop-aws-warnings.html hadoop-tools/hadoop-aws in feature-HADOOP-18073-s3a-sdk-upgrade has 1 extant spotbugs warnings.
-1 ❌ spotbugs 17m 35s /branch-spotbugs-root-warnings.html root in feature-HADOOP-18073-s3a-sdk-upgrade has 1 extant spotbugs warnings.
+1 💚 shadedclient 38m 14s branch has no errors when building and testing our client artifacts.
-0 ⚠️ patch 38m 33s Used diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 25s Maven dependency ordering for patch
+1 💚 mvninstall 19m 35s the patch passed
+1 💚 compile 10m 0s the patch passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04
+1 💚 javac 10m 0s the patch passed
+1 💚 compile 9m 35s the patch passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
+1 💚 javac 9m 35s the patch passed
-1 ❌ blanks 0m 0s /blanks-eol.txt The patch has 2 line(s) that end in blanks. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
+1 💚 checkstyle 2m 20s root: The patch generated 0 new + 28 unchanged - 12 fixed = 28 total (was 40)
+1 💚 mvnsite 10m 15s the patch passed
+1 💚 shellcheck 0m 0s No new issues.
+1 💚 javadoc 5m 53s the patch passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04
+1 💚 javadoc 5m 21s root-jdkPrivateBuild-1.8.0_382-8u382-ga-120.04.1-b05 with JDK Private Build-1.8.0_382-8u382-ga-120.04.1-b05 generated 0 new + 1450 unchanged - 1 fixed = 1450 total (was 1451)
+0 🆗 spotbugs 0m 18s hadoop-project has no data from spotbugs
+1 💚 spotbugs 1m 35s hadoop-common in the patch passed.
+1 💚 spotbugs 0m 53s hadoop-tools/hadoop-aws generated 0 new + 0 unchanged - 1 fixed = 0 total (was 1)
+1 💚 spotbugs 17m 21s root generated 0 new + 0 unchanged - 1 fixed = 0 total (was 1)
+1 💚 shadedclient 41m 56s patch has no errors when building and testing our client artifacts.
_ Other Tests _
-1 ❌ unit 696m 37s /patch-unit-root.txt root in the patch passed.
+1 💚 asflicense 1m 25s The patch does not generate ASF License warnings.
935m 47s
Reason Tests
Failed junit tests hadoop.mapreduce.v2.TestMRJobs
hadoop.mapreduce.v2.TestUberAM
hadoop.mapreduce.v2.TestMRJobsWithProfiler
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5872/13/artifact/out/Dockerfile
GITHUB PR #5872
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint spotbugs checkstyle markdownlint shellcheck shelldocs
uname Linux c026b70e84e5 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision feature-HADOOP-18073-s3a-sdk-upgrade / 99273eb
Default Java Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5872/13/testReport/
Max. process+thread count 3560 (vs. ulimit of 5500)
modules C: hadoop-project hadoop-common-project/hadoop-common hadoop-tools/hadoop-aws . U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5872/13/console
versions git=2.25.1 maven=3.6.3 spotbugs=4.2.2 shellcheck=0.7.0
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 31s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 2s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+0 🆗 xmllint 0m 0s xmllint was not available.
+0 🆗 markdownlint 0m 0s markdownlint was not available.
+0 🆗 shelldocs 0m 0s Shelldocs was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 29 new or modified test files.
_ feature-HADOOP-18073-s3a-sdk-upgrade Compile Tests _
+0 🆗 mvndep 14m 29s Maven dependency ordering for branch
+1 💚 mvninstall 24m 17s feature-HADOOP-18073-s3a-sdk-upgrade passed
+1 💚 compile 10m 45s feature-HADOOP-18073-s3a-sdk-upgrade passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04
+1 💚 compile 9m 50s feature-HADOOP-18073-s3a-sdk-upgrade passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
+1 💚 checkstyle 2m 43s feature-HADOOP-18073-s3a-sdk-upgrade passed
+1 💚 mvnsite 15m 30s feature-HADOOP-18073-s3a-sdk-upgrade passed
+1 💚 javadoc 6m 9s feature-HADOOP-18073-s3a-sdk-upgrade passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04
+1 💚 javadoc 5m 27s feature-HADOOP-18073-s3a-sdk-upgrade passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
+0 🆗 spotbugs 0m 17s branch/hadoop-project no spotbugs output file (spotbugsXml.xml)
-1 ❌ spotbugs 0m 48s /branch-spotbugs-hadoop-tools_hadoop-aws-warnings.html hadoop-tools/hadoop-aws in feature-HADOOP-18073-s3a-sdk-upgrade has 1 extant spotbugs warnings.
-1 ❌ spotbugs 21m 11s /branch-spotbugs-root-warnings.html root in feature-HADOOP-18073-s3a-sdk-upgrade has 1 extant spotbugs warnings.
+1 💚 shadedclient 45m 32s branch has no errors when building and testing our client artifacts.
-0 ⚠️ patch 45m 52s Used diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 24s Maven dependency ordering for patch
+1 💚 mvninstall 24m 54s the patch passed
+1 💚 compile 11m 39s the patch passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04
+1 💚 javac 11m 39s the patch passed
+1 💚 compile 11m 14s the patch passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
+1 💚 javac 11m 14s the patch passed
-1 ❌ blanks 0m 0s /blanks-eol.txt The patch has 2 line(s) that end in blanks. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
+1 💚 checkstyle 3m 12s root: The patch generated 0 new + 23 unchanged - 18 fixed = 23 total (was 41)
+1 💚 mvnsite 11m 32s the patch passed
+1 💚 shellcheck 0m 0s No new issues.
+1 💚 javadoc 6m 38s the patch passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04
+1 💚 javadoc 5m 35s root-jdkPrivateBuild-1.8.0_382-8u382-ga-120.04.1-b05 with JDK Private Build-1.8.0_382-8u382-ga-120.04.1-b05 generated 0 new + 1450 unchanged - 1 fixed = 1450 total (was 1451)
+0 🆗 spotbugs 0m 17s hadoop-project has no data from spotbugs
+1 💚 spotbugs 1m 51s hadoop-common in the patch passed.
+1 💚 spotbugs 0m 59s hadoop-tools/hadoop-aws generated 0 new + 0 unchanged - 1 fixed = 0 total (was 1)
+1 💚 spotbugs 23m 43s root generated 0 new + 0 unchanged - 1 fixed = 0 total (was 1)
+1 💚 shadedclient 54m 13s patch has no errors when building and testing our client artifacts.
_ Other Tests _
-1 ❌ unit 686m 17s /patch-unit-root.txt root in the patch passed.
+1 💚 asflicense 1m 31s The patch does not generate ASF License warnings.
964m 47s
Reason Tests
Failed junit tests hadoop.yarn.server.timelineservice.security.TestTimelineAuthFilterForV2
hadoop.mapreduce.v2.TestMRJobs
hadoop.mapreduce.v2.TestUberAM
hadoop.mapreduce.v2.TestMRJobsWithProfiler
hadoop.hdfs.TestReconstructStripedFileWithValidator
hadoop.hdfs.server.namenode.ha.TestObserverNode
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5872/14/artifact/out/Dockerfile
GITHUB PR #5872
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint spotbugs checkstyle markdownlint shellcheck shelldocs
uname Linux bc2d418a5d96 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision feature-HADOOP-18073-s3a-sdk-upgrade / 34beeea
Default Java Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5872/14/testReport/
Max. process+thread count 3620 (vs. ulimit of 5500)
modules C: hadoop-project hadoop-common-project/hadoop-common hadoop-tools/hadoop-aws . U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5872/14/console
versions git=2.25.1 maven=3.6.3 spotbugs=4.2.2 shellcheck=0.7.0
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 32s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 2s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+0 🆗 xmllint 0m 0s xmllint was not available.
+0 🆗 markdownlint 0m 0s markdownlint was not available.
+0 🆗 shelldocs 0m 0s Shelldocs was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 29 new or modified test files.
_ feature-HADOOP-18073-s3a-sdk-upgrade Compile Tests _
+0 🆗 mvndep 14m 29s Maven dependency ordering for branch
+1 💚 mvninstall 28m 22s feature-HADOOP-18073-s3a-sdk-upgrade passed
+1 💚 compile 13m 0s feature-HADOOP-18073-s3a-sdk-upgrade passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04
+1 💚 compile 11m 52s feature-HADOOP-18073-s3a-sdk-upgrade passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
+1 💚 checkstyle 3m 16s feature-HADOOP-18073-s3a-sdk-upgrade passed
+1 💚 mvnsite 16m 55s feature-HADOOP-18073-s3a-sdk-upgrade passed
+1 💚 javadoc 7m 10s feature-HADOOP-18073-s3a-sdk-upgrade passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04
+1 💚 javadoc 6m 4s feature-HADOOP-18073-s3a-sdk-upgrade passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
+0 🆗 spotbugs 0m 18s branch/hadoop-project no spotbugs output file (spotbugsXml.xml)
-1 ❌ spotbugs 0m 45s /branch-spotbugs-hadoop-tools_hadoop-aws-warnings.html hadoop-tools/hadoop-aws in feature-HADOOP-18073-s3a-sdk-upgrade has 1 extant spotbugs warnings.
-1 ❌ spotbugs 21m 56s /branch-spotbugs-root-warnings.html root in feature-HADOOP-18073-s3a-sdk-upgrade has 1 extant spotbugs warnings.
+1 💚 shadedclient 50m 11s branch has no errors when building and testing our client artifacts.
-0 ⚠️ patch 50m 31s Used diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 24s Maven dependency ordering for patch
+1 💚 mvninstall 27m 18s the patch passed
+1 💚 compile 11m 48s the patch passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04
+1 💚 javac 11m 48s the patch passed
+1 💚 compile 10m 53s the patch passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
+1 💚 javac 10m 53s the patch passed
-1 ❌ blanks 0m 0s /blanks-eol.txt The patch has 2 line(s) that end in blanks. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
-0 ⚠️ checkstyle 2m 45s /results-checkstyle-root.txt root: The patch generated 1 new + 23 unchanged - 18 fixed = 24 total (was 41)
+1 💚 mvnsite 10m 54s the patch passed
+1 💚 shellcheck 0m 0s No new issues.
+1 💚 javadoc 6m 20s the patch passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04
+1 💚 javadoc 5m 41s root-jdkPrivateBuild-1.8.0_382-8u382-ga-120.04.1-b05 with JDK Private Build-1.8.0_382-8u382-ga-120.04.1-b05 generated 0 new + 1450 unchanged - 1 fixed = 1450 total (was 1451)
+0 🆗 spotbugs 0m 18s hadoop-project has no data from spotbugs
+1 💚 spotbugs 1m 40s hadoop-common in the patch passed.
+1 💚 spotbugs 0m 59s hadoop-tools/hadoop-aws generated 0 new + 0 unchanged - 1 fixed = 0 total (was 1)
+1 💚 spotbugs 21m 20s root generated 0 new + 0 unchanged - 1 fixed = 0 total (was 1)
+1 💚 shadedclient 49m 0s patch has no errors when building and testing our client artifacts.
_ Other Tests _
-1 ❌ unit 671m 18s /patch-unit-root.txt root in the patch passed.
+1 💚 asflicense 1m 24s The patch does not generate ASF License warnings.
961m 55s
Reason Tests
Failed junit tests hadoop.mapreduce.v2.TestMRJobs
hadoop.mapreduce.v2.TestUberAM
hadoop.mapreduce.v2.TestMRJobsWithProfiler
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5872/15/artifact/out/Dockerfile
GITHUB PR #5872
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint spotbugs checkstyle markdownlint shellcheck shelldocs
uname Linux 5c7619e4dcd3 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision feature-HADOOP-18073-s3a-sdk-upgrade / f6eeb29
Default Java Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5872/15/testReport/
Max. process+thread count 3439 (vs. ulimit of 5500)
modules C: hadoop-project hadoop-common-project/hadoop-common hadoop-tools/hadoop-aws . U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5872/15/console
versions git=2.25.1 maven=3.6.3 spotbugs=4.2.2 shellcheck=0.7.0
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

@steveloughran
Copy link
Contributor Author

Spotbugs is running off a version of the findbugs.xml which is not the one in the last commit. not sure how/why, but locally a call to mvn spotbugs:check is happy, the way it isn't before that patch.

All test failures are unrelated.

I don't know what is up with the spotbugs run, but this patch is ready except for style/eof, which i will now address

Change-Id: If7ca8bb9c89794e079e0de4c9de46da8ac565032
Copy link
Contributor

@ahmarsuhail ahmarsuhail left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM. Couple of minor comments

@@ -998,7 +999,7 @@ private void bindAWSClient(URI name, boolean dtEnabled) throws IOException {
* @param parameters parameter object
* @throws IOException on any IO problem
*/
private synchronized void createS3AsyncClient(S3ClientFactory clientFactory,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we moved these out into their separate methods to fix spotbugs issues..cause they were not getting fixed by the addition to findbugs-exclude.xml. but if that's working now, we can revert these changes and intialise the s3Async client the same way as the sync one

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't know WTF is up with spotbugs. it works on the command line for me.

/**
* Warns on an AWS V1 credential provider being referenced directly.
* Notes an AWS V1 credential provider being referenced directly.
* @param name name of the credential provider
*/
public static void v1ProviderReferenced(String name) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

currently this isn't used anywhere. CredentialProviderListFactory already has LOG_REMAPPED_ENTRY which will log if you're using a V1 provider I think. if we want the debug..we can call this from CredentialProviderListFactory.buildAWSProviderList

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'll look at this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cut it.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 28s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 2s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+0 🆗 xmllint 0m 0s xmllint was not available.
+0 🆗 markdownlint 0m 0s markdownlint was not available.
+0 🆗 shelldocs 0m 0s Shelldocs was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 29 new or modified test files.
_ feature-HADOOP-18073-s3a-sdk-upgrade Compile Tests _
+0 🆗 mvndep 14m 14s Maven dependency ordering for branch
-1 ❌ mvninstall 20m 41s /branch-mvninstall-root.txt root in feature-HADOOP-18073-s3a-sdk-upgrade failed.
+1 💚 compile 10m 9s feature-HADOOP-18073-s3a-sdk-upgrade passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04
+1 💚 compile 8m 56s feature-HADOOP-18073-s3a-sdk-upgrade passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
+1 💚 checkstyle 2m 24s feature-HADOOP-18073-s3a-sdk-upgrade passed
+1 💚 mvnsite 13m 31s feature-HADOOP-18073-s3a-sdk-upgrade passed
+1 💚 javadoc 5m 51s feature-HADOOP-18073-s3a-sdk-upgrade passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04
+1 💚 javadoc 4m 58s feature-HADOOP-18073-s3a-sdk-upgrade passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
+0 🆗 spotbugs 0m 18s branch/hadoop-project no spotbugs output file (spotbugsXml.xml)
-1 ❌ spotbugs 0m 42s /branch-spotbugs-hadoop-tools_hadoop-aws-warnings.html hadoop-tools/hadoop-aws in feature-HADOOP-18073-s3a-sdk-upgrade has 1 extant spotbugs warnings.
-1 ❌ spotbugs 17m 25s /branch-spotbugs-root-warnings.html root in feature-HADOOP-18073-s3a-sdk-upgrade has 1 extant spotbugs warnings.
+1 💚 shadedclient 37m 4s branch has no errors when building and testing our client artifacts.
-0 ⚠️ patch 37m 23s Used diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 27s Maven dependency ordering for patch
+1 💚 mvninstall 19m 4s the patch passed
+1 💚 compile 9m 33s the patch passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04
+1 💚 javac 9m 33s the patch passed
+1 💚 compile 9m 2s the patch passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
+1 💚 javac 9m 2s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 2m 18s root: The patch generated 0 new + 23 unchanged - 18 fixed = 23 total (was 41)
+1 💚 mvnsite 8m 41s the patch passed
+1 💚 shellcheck 0m 0s No new issues.
+1 💚 javadoc 5m 40s the patch passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04
+1 💚 javadoc 4m 58s root-jdkPrivateBuild-1.8.0_382-8u382-ga-120.04.1-b05 with JDK Private Build-1.8.0_382-8u382-ga-120.04.1-b05 generated 0 new + 1450 unchanged - 1 fixed = 1450 total (was 1451)
+0 🆗 spotbugs 0m 18s hadoop-project has no data from spotbugs
+1 💚 spotbugs 1m 25s hadoop-common in the patch passed.
+1 💚 spotbugs 0m 52s hadoop-tools/hadoop-aws generated 0 new + 0 unchanged - 1 fixed = 0 total (was 1)
+1 💚 spotbugs 17m 34s root generated 0 new + 0 unchanged - 1 fixed = 0 total (was 1)
+1 💚 shadedclient 39m 52s patch has no errors when building and testing our client artifacts.
_ Other Tests _
-1 ❌ unit 657m 34s /patch-unit-root.txt root in the patch passed.
+1 💚 asflicense 1m 26s The patch does not generate ASF License warnings.
888m 21s
Reason Tests
Failed junit tests hadoop.mapreduce.v2.TestMRJobs
hadoop.mapreduce.v2.TestUberAM
hadoop.mapreduce.v2.TestMRJobsWithProfiler
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5872/16/artifact/out/Dockerfile
GITHUB PR #5872
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint spotbugs checkstyle markdownlint shellcheck shelldocs
uname Linux 6fbd276abe0e 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision feature-HADOOP-18073-s3a-sdk-upgrade / 644b390
Default Java Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5872/16/testReport/
Max. process+thread count 3953 (vs. ulimit of 5500)
modules C: hadoop-project hadoop-common-project/hadoop-common hadoop-tools/hadoop-aws . U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5872/16/console
versions git=2.25.1 maven=3.6.3 spotbugs=4.2.2 shellcheck=0.7.0
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

Cut unused v1ProviderReferenced() method

audit doc update
- auditing is enabled again
- new fs.s3a.audit.execution.interceptors option
- how to log httpclient

Change-Id: Ib0c5b86407e059d53c469151cf3d89ede65e9116
@steveloughran
Copy link
Contributor Author

latest patch removed the redundant method and updates the auditing docs to cover the migration to the new option, plus any other updates needed. Note: storediag updated to print the new audit option and those files on the classpath to list what to automatically load too.

@ahmarsuhail if people really wanted to plug in handling here, maybe we should say "if the class implements Configurable we call setConf on it". that way people can add dynamic configuration through hadoop/spark jobs.

v1 conf load uses getTrimmed() and logs the list of values;
v2 ExecutionInterceptor will, if they implement Configurable,
   get the auditor Configuration

Change-Id: Ic0d49cbceb4a0c9fed9013c9a605f9b240801d73
@steveloughran
Copy link
Contributor Author

OK, I added the setConf() feature. Means thing is potentially useful.

V1 handlers get an error, as seen in the test

2023-08-17 17:24:42,849 [setup] WARN  s3a.SDKV2Upgrade (LogExactlyOnce.java:warn(39)) - Ignoring V1 SDK request handlers set in fs.s3a.audit.request.handlers: not-valid-class

Note, AFAIK nobody has ever added a custom handler.

@steveloughran
Copy link
Contributor Author

steveloughran commented Aug 17, 2023

tested s3 london at scale; got the usual huge file multipart failure. turn off for now?

also saw a transitive failure of ITestS3APrefetchingInputStream; seen that before. unrelated and fixed in trunk by #5149

@steveloughran
Copy link
Contributor Author

@mukund-thakur @mehakmeet you happy with this? we are, and once it's in I'm ready to rebase and merge to trunk

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 29s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+0 🆗 xmllint 0m 0s xmllint was not available.
+0 🆗 markdownlint 0m 0s markdownlint was not available.
+0 🆗 shelldocs 0m 1s Shelldocs was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 29 new or modified test files.
_ feature-HADOOP-18073-s3a-sdk-upgrade Compile Tests _
+0 🆗 mvndep 14m 42s Maven dependency ordering for branch
+1 💚 mvninstall 20m 15s feature-HADOOP-18073-s3a-sdk-upgrade passed
+1 💚 compile 10m 7s feature-HADOOP-18073-s3a-sdk-upgrade passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04
+1 💚 compile 9m 7s feature-HADOOP-18073-s3a-sdk-upgrade passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
+1 💚 checkstyle 2m 23s feature-HADOOP-18073-s3a-sdk-upgrade passed
+1 💚 mvnsite 14m 12s feature-HADOOP-18073-s3a-sdk-upgrade passed
+1 💚 javadoc 5m 52s feature-HADOOP-18073-s3a-sdk-upgrade passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04
+1 💚 javadoc 5m 6s feature-HADOOP-18073-s3a-sdk-upgrade passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
+0 🆗 spotbugs 0m 17s branch/hadoop-project no spotbugs output file (spotbugsXml.xml)
-1 ❌ spotbugs 0m 43s /branch-spotbugs-hadoop-tools_hadoop-aws-warnings.html hadoop-tools/hadoop-aws in feature-HADOOP-18073-s3a-sdk-upgrade has 1 extant spotbugs warnings.
-1 ❌ spotbugs 18m 14s /branch-spotbugs-root-warnings.html root in feature-HADOOP-18073-s3a-sdk-upgrade has 1 extant spotbugs warnings.
+1 💚 shadedclient 42m 54s branch has no errors when building and testing our client artifacts.
-0 ⚠️ patch 43m 11s Used diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 24s Maven dependency ordering for patch
+1 💚 mvninstall 20m 22s the patch passed
+1 💚 compile 10m 20s the patch passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04
+1 💚 javac 10m 20s the patch passed
+1 💚 compile 8m 57s the patch passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
+1 💚 javac 8m 57s the patch passed
-1 ❌ blanks 0m 0s /blanks-eol.txt The patch has 3 line(s) that end in blanks. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
+1 💚 checkstyle 2m 20s root: The patch generated 0 new + 23 unchanged - 18 fixed = 23 total (was 41)
+1 💚 mvnsite 8m 58s the patch passed
+1 💚 shellcheck 0m 0s No new issues.
+1 💚 javadoc 5m 44s the patch passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04
+1 💚 javadoc 5m 22s root-jdkPrivateBuild-1.8.0_382-8u382-ga-120.04.1-b05 with JDK Private Build-1.8.0_382-8u382-ga-120.04.1-b05 generated 0 new + 1450 unchanged - 1 fixed = 1450 total (was 1451)
+0 🆗 spotbugs 0m 18s hadoop-project has no data from spotbugs
+1 💚 spotbugs 1m 25s hadoop-common in the patch passed.
+1 💚 spotbugs 0m 52s hadoop-tools/hadoop-aws generated 0 new + 0 unchanged - 1 fixed = 0 total (was 1)
+1 💚 spotbugs 18m 25s root generated 0 new + 0 unchanged - 1 fixed = 0 total (was 1)
+1 💚 shadedclient 42m 58s patch has no errors when building and testing our client artifacts.
_ Other Tests _
-1 ❌ unit 669m 0s /patch-unit-root.txt root in the patch passed.
+1 💚 asflicense 1m 28s The patch does not generate ASF License warnings.
914m 6s
Reason Tests
Failed junit tests hadoop.mapreduce.v2.TestMRJobs
hadoop.mapreduce.v2.TestUberAM
hadoop.mapreduce.v2.TestMRJobsWithProfiler
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5872/17/artifact/out/Dockerfile
GITHUB PR #5872
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint spotbugs checkstyle markdownlint shellcheck shelldocs
uname Linux 2d3d8fdf14bb 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision feature-HADOOP-18073-s3a-sdk-upgrade / f7b2638
Default Java Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5872/17/testReport/
Max. process+thread count 3998 (vs. ulimit of 5500)
modules C: hadoop-project hadoop-common-project/hadoop-common hadoop-tools/hadoop-aws . U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5872/17/console
versions git=2.25.1 maven=3.6.3 spotbugs=4.2.2 shellcheck=0.7.0
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 28s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 2s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+0 🆗 xmllint 0m 0s xmllint was not available.
+0 🆗 markdownlint 0m 0s markdownlint was not available.
+0 🆗 shelldocs 0m 0s Shelldocs was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 31 new or modified test files.
_ feature-HADOOP-18073-s3a-sdk-upgrade Compile Tests _
+0 🆗 mvndep 14m 19s Maven dependency ordering for branch
+1 💚 mvninstall 21m 10s feature-HADOOP-18073-s3a-sdk-upgrade passed
+1 💚 compile 10m 57s feature-HADOOP-18073-s3a-sdk-upgrade passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04
+1 💚 compile 10m 26s feature-HADOOP-18073-s3a-sdk-upgrade passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
+1 💚 checkstyle 2m 33s feature-HADOOP-18073-s3a-sdk-upgrade passed
+1 💚 mvnsite 14m 48s feature-HADOOP-18073-s3a-sdk-upgrade passed
+1 💚 javadoc 5m 49s feature-HADOOP-18073-s3a-sdk-upgrade passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04
+1 💚 javadoc 4m 42s feature-HADOOP-18073-s3a-sdk-upgrade passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
+0 🆗 spotbugs 0m 17s branch/hadoop-project no spotbugs output file (spotbugsXml.xml)
-1 ❌ spotbugs 0m 36s /branch-spotbugs-hadoop-tools_hadoop-aws-warnings.html hadoop-tools/hadoop-aws in feature-HADOOP-18073-s3a-sdk-upgrade has 1 extant spotbugs warnings.
-1 ❌ spotbugs 17m 39s /branch-spotbugs-root-warnings.html root in feature-HADOOP-18073-s3a-sdk-upgrade has 1 extant spotbugs warnings.
+1 💚 shadedclient 38m 29s branch has no errors when building and testing our client artifacts.
-0 ⚠️ patch 38m 48s Used diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 25s Maven dependency ordering for patch
+1 💚 mvninstall 21m 42s the patch passed
+1 💚 compile 11m 6s the patch passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04
+1 💚 javac 11m 6s the patch passed
+1 💚 compile 9m 59s the patch passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
+1 💚 javac 9m 59s the patch passed
-1 ❌ blanks 0m 0s /blanks-eol.txt The patch has 3 line(s) that end in blanks. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
+1 💚 checkstyle 2m 34s root: The patch generated 0 new + 23 unchanged - 19 fixed = 23 total (was 42)
+1 💚 mvnsite 9m 39s the patch passed
+1 💚 shellcheck 0m 0s No new issues.
+1 💚 javadoc 6m 4s the patch passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04
+1 💚 javadoc 4m 40s root-jdkPrivateBuild-1.8.0_382-8u382-ga-120.04.1-b05 with JDK Private Build-1.8.0_382-8u382-ga-120.04.1-b05 generated 0 new + 1450 unchanged - 1 fixed = 1450 total (was 1451)
+0 🆗 spotbugs 0m 17s hadoop-project has no data from spotbugs
+1 💚 spotbugs 1m 27s hadoop-common in the patch passed.
+1 💚 spotbugs 0m 48s hadoop-tools/hadoop-aws generated 0 new + 0 unchanged - 1 fixed = 0 total (was 1)
+1 💚 spotbugs 17m 35s root generated 0 new + 0 unchanged - 1 fixed = 0 total (was 1)
+1 💚 shadedclient 42m 3s patch has no errors when building and testing our client artifacts.
_ Other Tests _
-1 ❌ unit 670m 2s /patch-unit-root.txt root in the patch passed.
+1 💚 asflicense 1m 27s The patch does not generate ASF License warnings.
914m 40s
Reason Tests
Failed junit tests hadoop.net.TestSocketIOWithTimeout
hadoop.mapreduce.v2.TestMRJobs
hadoop.mapreduce.v2.TestUberAM
hadoop.mapreduce.v2.TestMRJobsWithProfiler
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5872/18/artifact/out/Dockerfile
GITHUB PR #5872
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint spotbugs checkstyle markdownlint shellcheck shelldocs
uname Linux 54af3b9dcb42 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision feature-HADOOP-18073-s3a-sdk-upgrade / afc6787
Default Java Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5872/18/testReport/
Max. process+thread count 3560 (vs. ulimit of 5500)
modules C: hadoop-project hadoop-common-project/hadoop-common hadoop-tools/hadoop-aws . U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5872/18/console
versions git=2.25.1 maven=3.6.3 spotbugs=4.2.2 shellcheck=0.7.0
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

Change-Id: Ib6125d34fa51a4af26f679339598241a6fb42fc8
Copy link
Contributor

@mukund-thakur mukund-thakur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM +1 , pending yetus.

nice unit test TestV1CredentialsProvider

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 30s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 2s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+0 🆗 xmllint 0m 0s xmllint was not available.
+0 🆗 markdownlint 0m 0s markdownlint was not available.
+0 🆗 shelldocs 0m 0s Shelldocs was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 31 new or modified test files.
_ feature-HADOOP-18073-s3a-sdk-upgrade Compile Tests _
+0 🆗 mvndep 13m 56s Maven dependency ordering for branch
+1 💚 mvninstall 22m 55s feature-HADOOP-18073-s3a-sdk-upgrade passed
+1 💚 compile 9m 53s feature-HADOOP-18073-s3a-sdk-upgrade passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04
+1 💚 compile 9m 0s feature-HADOOP-18073-s3a-sdk-upgrade passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
+1 💚 checkstyle 2m 24s feature-HADOOP-18073-s3a-sdk-upgrade passed
+1 💚 mvnsite 13m 49s feature-HADOOP-18073-s3a-sdk-upgrade passed
+1 💚 javadoc 5m 51s feature-HADOOP-18073-s3a-sdk-upgrade passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04
+1 💚 javadoc 5m 2s feature-HADOOP-18073-s3a-sdk-upgrade passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
+0 🆗 spotbugs 0m 18s branch/hadoop-project no spotbugs output file (spotbugsXml.xml)
-1 ❌ spotbugs 0m 41s /branch-spotbugs-hadoop-tools_hadoop-aws-warnings.html hadoop-tools/hadoop-aws in feature-HADOOP-18073-s3a-sdk-upgrade has 1 extant spotbugs warnings.
-1 ❌ spotbugs 17m 29s /branch-spotbugs-root-warnings.html root in feature-HADOOP-18073-s3a-sdk-upgrade has 1 extant spotbugs warnings.
+1 💚 shadedclient 37m 29s branch has no errors when building and testing our client artifacts.
-0 ⚠️ patch 37m 47s Used diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 26s Maven dependency ordering for patch
+1 💚 mvninstall 18m 58s the patch passed
+1 💚 compile 9m 27s the patch passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04
+1 💚 javac 9m 27s the patch passed
+1 💚 compile 8m 58s the patch passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
+1 💚 javac 8m 58s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 2m 20s root: The patch generated 0 new + 23 unchanged - 19 fixed = 23 total (was 42)
+1 💚 mvnsite 8m 34s the patch passed
+1 💚 shellcheck 0m 1s No new issues.
+1 💚 javadoc 5m 43s the patch passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04
+1 💚 javadoc 5m 0s root-jdkPrivateBuild-1.8.0_382-8u382-ga-120.04.1-b05 with JDK Private Build-1.8.0_382-8u382-ga-120.04.1-b05 generated 0 new + 1450 unchanged - 1 fixed = 1450 total (was 1451)
+0 🆗 spotbugs 0m 18s hadoop-project has no data from spotbugs
+1 💚 spotbugs 1m 27s hadoop-common in the patch passed.
+1 💚 spotbugs 0m 52s hadoop-tools/hadoop-aws generated 0 new + 0 unchanged - 1 fixed = 0 total (was 1)
+1 💚 spotbugs 17m 39s root generated 0 new + 0 unchanged - 1 fixed = 0 total (was 1)
+1 💚 shadedclient 37m 39s patch has no errors when building and testing our client artifacts.
_ Other Tests _
-1 ❌ unit 665m 15s /patch-unit-root.txt root in the patch passed.
+1 💚 asflicense 1m 26s The patch does not generate ASF License warnings.
895m 46s
Reason Tests
Failed junit tests hadoop.mapreduce.v2.TestMRJobs
hadoop.mapreduce.v2.TestUberAM
hadoop.mapreduce.v2.TestMRJobsWithProfiler
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5872/19/artifact/out/Dockerfile
GITHUB PR #5872
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint spotbugs checkstyle markdownlint shellcheck shelldocs
uname Linux 66c881e154c3 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision feature-HADOOP-18073-s3a-sdk-upgrade / d89d95e
Default Java Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5872/19/testReport/
Max. process+thread count 3944 (vs. ulimit of 5500)
modules C: hadoop-project hadoop-common-project/hadoop-common hadoop-tools/hadoop-aws . U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5872/19/console
versions git=2.25.1 maven=3.6.3 spotbugs=4.2.2 shellcheck=0.7.0
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

@steveloughran steveloughran merged commit 32b2f49 into apache:feature-HADOOP-18073-s3a-sdk-upgrade Aug 21, 2023
steveloughran added a commit to steveloughran/hadoop that referenced this pull request Aug 21, 2023
This removes the AWS V1 SDK as a hadoop-aws runtime dependency.

It is still used at compile time so as to build a wrapper class
V1ToV2AwsCredentialProviderAdapter which allows v1 credential provider
to be used for authentication.
All well known credential providers have their classname remapped from
v1 to v2 classes prior to instantiation; this wrapper is not needed
for them.

There is no support for migrating other SDK plugin points
(signing, handlers)

Access to the v2 S3Client class used by an S3A FileSystem
instance is now via a new interface org.apache.hadoop.fs.s3a.S3AInternals;
other low-level operations (getObjectMetadata(Path)) have moved.

Contributed by Steve Loughran

Change-Id: I231fade61b20a206a018d18f5e867f5d3a1fa879
steveloughran added a commit that referenced this pull request Aug 23, 2023
This removes the AWS V1 SDK as a hadoop-aws runtime dependency.

It is still used at compile time so as to build a wrapper class
V1ToV2AwsCredentialProviderAdapter which allows v1 credential provider
to be used for authentication.
All well known credential providers have their classname remapped from
v1 to v2 classes prior to instantiation; this wrapper is not needed
for them.

There is no support for migrating other SDK plugin points
(signing, handlers)

Access to the v2 S3Client class used by an S3A FileSystem
instance is now via a new interface org.apache.hadoop.fs.s3a.S3AInternals;
other low-level operations (getObjectMetadata(Path)) have moved.

Contributed by Steve Loughran
steveloughran added a commit to steveloughran/hadoop that referenced this pull request Aug 23, 2023
This removes the AWS V1 SDK as a hadoop-aws runtime dependency.

It is still used at compile time so as to build a wrapper class
V1ToV2AwsCredentialProviderAdapter which allows v1 credential provider
to be used for authentication.
All well known credential providers have their classname remapped from
v1 to v2 classes prior to instantiation; this wrapper is not needed
for them.

There is no support for migrating other SDK plugin points
(signing, handlers)

Access to the v2 S3Client class used by an S3A FileSystem
instance is now via a new interface org.apache.hadoop.fs.s3a.S3AInternals;
other low-level operations (getObjectMetadata(Path)) have moved.

Contributed by Steve Loughran
steveloughran added a commit to steveloughran/hadoop that referenced this pull request Aug 28, 2023
This removes the AWS V1 SDK as a hadoop-aws runtime dependency.

It is still used at compile time so as to build a wrapper class
V1ToV2AwsCredentialProviderAdapter which allows v1 credential provider
to be used for authentication.
All well known credential providers have their classname remapped from
v1 to v2 classes prior to instantiation; this wrapper is not needed
for them.

There is no support for migrating other SDK plugin points
(signing, handlers)

Access to the v2 S3Client class used by an S3A FileSystem
instance is now via a new interface org.apache.hadoop.fs.s3a.S3AInternals;
other low-level operations (getObjectMetadata(Path)) have moved.

Contributed by Steve Loughran
steveloughran added a commit to steveloughran/hadoop that referenced this pull request Aug 31, 2023
This removes the AWS V1 SDK as a hadoop-aws runtime dependency.

It is still used at compile time so as to build a wrapper class
V1ToV2AwsCredentialProviderAdapter which allows v1 credential provider
to be used for authentication.
All well known credential providers have their classname remapped from
v1 to v2 classes prior to instantiation; this wrapper is not needed
for them.

There is no support for migrating other SDK plugin points
(signing, handlers)

Access to the v2 S3Client class used by an S3A FileSystem
instance is now via a new interface org.apache.hadoop.fs.s3a.S3AInternals;
other low-level operations (getObjectMetadata(Path)) have moved.

Contributed by Steve Loughran

This patch (unlike the feature branch) does not have an
enforcer rule to reject use of com.amazonaws classes; yetus
was rejecting it.

Change-Id: I854fc5d8707016a87a1321e46c1f0ad726ceff3a
steveloughran pushed a commit to steveloughran/hadoop that referenced this pull request Sep 1, 2023
This is an aggregate patch of the changes from
feature-HADOOP-18073-s3a-sdk-upgrade
and moves the S3A connector to to using the V2 AWS SDK

This is a major change: See aws_sdk_v2_changelog.md for details.

A new shaded v2 SDK JAR "bundle.jar" needs to be distributed
with the connector to interact with S3 stores

All code which was using the V1 SDK classes with the S3AFileSystem
will need upgrading.

Contributed by Ahmar Suhail

HADOOP-18820. Cut AWS v1 support (apache#5872)

This removes the AWS V1 SDK as a hadoop-aws runtime dependency.

It is still used at compile time so as to build a wrapper class
V1ToV2AwsCredentialProviderAdapter which allows v1 credential provider
to be used for authentication.
All well known credential providers have their classname remapped from
v1 to v2 classes prior to instantiation; this wrapper is not needed
for them.

There is no support for migrating other SDK plugin points
(signing, handlers)

Access to the v2 S3Client class used by an S3A FileSystem
instance is now via a new interface org.apache.hadoop.fs.s3a.S3AInternals;
other low-level operations (getObjectMetadata(Path)) have moved.

Contributed by Steve Loughran

HADOOP-18853. Upgrade AWS SDK version to 2.20.28 (apache#5960)

Upgrades the AWS sdk v2 version to 2.20.28

This
* adds multipart COPY/rename in the java async client
* removes the aws-crt JAR dependency

Contributed by Ahmar Suhail

HADOOP-18818. Merge aws v2 upgrade feature branch into trunk

Contains HADOOP-18863. AWS SDK V2 - AuditFailureExceptions aren't
 being translated properly

Change-Id: I96b26cc1ee535c519248ca6541fb157017dcc7e4
steveloughran pushed a commit to steveloughran/hadoop that referenced this pull request Sep 1, 2023
This is an aggregate patch of the changes from
feature-HADOOP-18073-s3a-sdk-upgrade
and moves the S3A connector to to using the V2 AWS SDK

This is a major change: See aws_sdk_v2_changelog.md for details.

A new shaded v2 SDK JAR "bundle.jar" needs to be distributed
with the connector to interact with S3 stores

All code which was using the V1 SDK classes with the S3AFileSystem
will need upgrading.

Contributed by Ahmar Suhail

HADOOP-18820. Cut AWS v1 support (apache#5872)

This removes the AWS V1 SDK as a hadoop-aws runtime dependency.

It is still used at compile time so as to build a wrapper class
V1ToV2AwsCredentialProviderAdapter which allows v1 credential provider
to be used for authentication.
All well known credential providers have their classname remapped from
v1 to v2 classes prior to instantiation; this wrapper is not needed
for them.

There is no support for migrating other SDK plugin points
(signing, handlers)

Access to the v2 S3Client class used by an S3A FileSystem
instance is now via a new interface org.apache.hadoop.fs.s3a.S3AInternals;
other low-level operations (getObjectMetadata(Path)) have moved.

Contributed by Steve Loughran

HADOOP-18853. Upgrade AWS SDK version to 2.20.28 (apache#5960)

Upgrades the AWS sdk v2 version to 2.20.28

This
* adds multipart COPY/rename in the java async client
* removes the aws-crt JAR dependency

Contributed by Ahmar Suhail

HADOOP-18818. Merge aws v2 upgrade feature branch into trunk

Contains HADOOP-18863. AWS SDK V2 - AuditFailureExceptions aren't
 being translated properly

Change-Id: I96b26cc1ee535c519248ca6541fb157017dcc7e4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants