Skip to content
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

HADOOP-19045. S3A: Validate CreateSession Timeout Propagation #6470

Conversation

steveloughran
Copy link
Contributor

@steveloughran steveloughran commented Jan 19, 2024

HADOOP-19045. Validate CreateSession Timeout Propagation

New test ITestCreateSessionTimeout to verify that the duration set
in fs.s3a.connection.request.timeout is passed all the way down.

This is done by adding a sleep() in a custom signer and verifying
that it is interrupted and that an AWSApiCallTimeoutException is
raised.

  • Improves javadocs of fs.s3a.connection.request.timeout.
  • Set the default value of that to 60s. There was always an implicit 60s value.

In v1 sdk this option was set to 0 because slow uploads would trigger the timeout.
But now it is only used for the Api Call Timeout value and there's an internal minimum
value fixup which sets it to 15s at a minimum. 60s is more resilient to problems.


Note this PR chain includes #6467 as that is needed for the AWS SDK containing the commit; that MUST be merged first into trunk

Propagating client apiCallTimeout values to S3Express createSession request configuration (#4831)

How was this patch tested?

S3 Express bucket in usw-2

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?

@steveloughran steveloughran changed the title S3/hadoop 19045 createsession timeouts HADOOP-19045. S3A: Validate CreateSession Timeout Propagation Jan 19, 2024
@steveloughran
Copy link
Contributor Author

tested: s3 london; no new failures

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 22s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s 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 3 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 13m 57s Maven dependency ordering for branch
+1 💚 mvninstall 23m 52s trunk passed
+1 💚 compile 9m 40s trunk passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04
+1 💚 compile 8m 57s trunk passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08
+1 💚 checkstyle 2m 12s trunk passed
+1 💚 mvnsite 13m 9s trunk passed
+1 💚 javadoc 4m 53s trunk passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04
+1 💚 javadoc 5m 1s trunk passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08
+0 🆗 spotbugs 0m 13s branch/hadoop-project no spotbugs output file (spotbugsXml.xml)
+1 💚 shadedclient 38m 21s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 37s Maven dependency ordering for patch
+1 💚 mvninstall 18m 11s the patch passed
+1 💚 compile 8m 36s the patch passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04
+1 💚 javac 8m 36s the patch passed
+1 💚 compile 7m 55s the patch passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08
+1 💚 javac 7m 55s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 2m 2s the patch passed
+1 💚 mvnsite 7m 5s the patch passed
+1 💚 shellcheck 0m 0s No new issues.
+1 💚 javadoc 4m 45s the patch passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04
+1 💚 javadoc 5m 0s the patch passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08
+0 🆗 spotbugs 0m 13s hadoop-project has no data from spotbugs
+1 💚 shadedclient 40m 47s patch has no errors when building and testing our client artifacts.
_ Other Tests _
-1 ❌ unit 646m 19s /patch-unit-root.txt root in the patch passed.
+1 💚 asflicense 0m 46s The patch does not generate ASF License warnings.
869m 17s
Reason Tests
Failed junit tests hadoop.yarn.server.resourcemanager.reservation.TestCapacityOverTimePolicy
hadoop.hdfs.server.datanode.TestDirectoryScanner
hadoop.hdfs.TestReconstructStripedFileWithRandomECPolicy
hadoop.hdfs.TestReconstructStripedFile
Subsystem Report/Notes
Docker ClientAPI=1.44 ServerAPI=1.44 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6470/1/artifact/out/Dockerfile
GITHUB PR #6470
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint spotbugs checkstyle markdownlint shellcheck shelldocs
uname Linux aecdff07283a 5.15.0-88-generic #98-Ubuntu SMP Mon Oct 2 15:18:56 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 9187b88
Default Java Private Build-1.8.0_392-8u392-ga-1~20.04-b08
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_392-8u392-ga-1~20.04-b08
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6470/1/testReport/
Max. process+thread count 4623 (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-6470/1/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 22s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 1s codespell was not available.
+0 🆗 detsecrets 0m 1s detect-secrets was not available.
+0 🆗 xmllint 0m 1s xmllint was not available.
+0 🆗 markdownlint 0m 1s 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 3 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 14m 5s Maven dependency ordering for branch
+1 💚 mvninstall 22m 25s trunk passed
+1 💚 compile 10m 10s trunk passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04
+1 💚 compile 8m 55s trunk passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08
+1 💚 checkstyle 2m 26s trunk passed
+1 💚 mvnsite 12m 46s trunk passed
+1 💚 javadoc 4m 34s trunk passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04
+1 💚 javadoc 4m 45s trunk passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08
+0 🆗 spotbugs 0m 12s branch/hadoop-project no spotbugs output file (spotbugsXml.xml)
+1 💚 shadedclient 41m 34s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 36s Maven dependency ordering for patch
+1 💚 mvninstall 23m 13s the patch passed
+1 💚 compile 9m 18s the patch passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04
+1 💚 javac 9m 18s the patch passed
+1 💚 compile 8m 46s the patch passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08
+1 💚 javac 8m 46s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 2m 20s the patch passed
+1 💚 mvnsite 8m 48s the patch passed
+1 💚 shellcheck 0m 0s No new issues.
+1 💚 javadoc 4m 38s the patch passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04
+1 💚 javadoc 4m 50s the patch passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08
+0 🆗 spotbugs 0m 12s hadoop-project has no data from spotbugs
+1 💚 shadedclient 41m 33s patch has no errors when building and testing our client artifacts.
_ Other Tests _
-1 ❌ unit 660m 53s /patch-unit-root.txt root in the patch passed.
+1 💚 asflicense 0m 52s The patch does not generate ASF License warnings.
894m 14s
Reason Tests
Failed junit tests hadoop.hdfs.server.datanode.TestDataNodeReconfiguration
hadoop.hdfs.server.namenode.TestReconstructStripedBlocks
hadoop.hdfs.TestSetrepIncreasing
hadoop.hdfs.TestDFSStripedOutputStream
hadoop.hdfs.TestErasureCodingPoliciesWithRandomECPolicy
Subsystem Report/Notes
Docker ClientAPI=1.44 ServerAPI=1.44 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6470/2/artifact/out/Dockerfile
GITHUB PR #6470
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint spotbugs checkstyle markdownlint shellcheck shelldocs
uname Linux cc06d5b3f538 5.15.0-88-generic #98-Ubuntu SMP Mon Oct 2 15:18:56 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 58f586b
Default Java Private Build-1.8.0_392-8u392-ga-1~20.04-b08
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_392-8u392-ga-1~20.04-b08
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6470/2/testReport/
Max. process+thread count 3883 (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-6470/2/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 23s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 1s codespell was not available.
+0 🆗 detsecrets 0m 1s detect-secrets was not available.
+0 🆗 xmllint 0m 1s xmllint was not available.
+0 🆗 markdownlint 0m 1s 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 3 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 14m 1s Maven dependency ordering for branch
+1 💚 mvninstall 24m 29s trunk passed
+1 💚 compile 9m 29s trunk passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04
+1 💚 compile 8m 47s trunk passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08
+1 💚 checkstyle 2m 33s trunk passed
+1 💚 mvnsite 13m 15s trunk passed
+1 💚 javadoc 4m 37s trunk passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04
+1 💚 javadoc 4m 52s trunk passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08
+0 🆗 spotbugs 0m 13s branch/hadoop-project no spotbugs output file (spotbugsXml.xml)
+1 💚 shadedclient 42m 0s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 40s Maven dependency ordering for patch
+1 💚 mvninstall 22m 53s the patch passed
+1 💚 compile 9m 54s the patch passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04
+1 💚 javac 9m 54s the patch passed
+1 💚 compile 9m 15s the patch passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08
+1 💚 javac 9m 15s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 2m 21s the patch passed
+1 💚 mvnsite 8m 12s the patch passed
+1 💚 shellcheck 0m 0s No new issues.
+1 💚 javadoc 4m 50s the patch passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04
+1 💚 javadoc 5m 3s the patch passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08
+0 🆗 spotbugs 0m 11s hadoop-project has no data from spotbugs
+1 💚 shadedclient 41m 12s patch has no errors when building and testing our client artifacts.
_ Other Tests _
-1 ❌ unit 645m 46s /patch-unit-root.txt root in the patch passed.
+1 💚 asflicense 0m 52s The patch does not generate ASF License warnings.
882m 9s
Reason Tests
Failed junit tests hadoop.hdfs.server.datanode.TestDataNodeReconfiguration
hadoop.hdfs.server.namenode.snapshot.TestRenameWithSnapshots
Subsystem Report/Notes
Docker ClientAPI=1.44 ServerAPI=1.44 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6470/3/artifact/out/Dockerfile
GITHUB PR #6470
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint spotbugs checkstyle markdownlint shellcheck shelldocs
uname Linux bf0d431fbdb9 5.15.0-88-generic #98-Ubuntu SMP Mon Oct 2 15:18:56 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 6db01dc
Default Java Private Build-1.8.0_392-8u392-ga-1~20.04-b08
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_392-8u392-ga-1~20.04-b08
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6470/3/testReport/
Max. process+thread count 4335 (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-6470/3/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 57s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s 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 3 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 14m 29s Maven dependency ordering for branch
+1 💚 mvninstall 30m 48s trunk passed
+1 💚 compile 16m 30s trunk passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04
+1 💚 compile 15m 28s trunk passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08
+1 💚 checkstyle 5m 1s trunk passed
+1 💚 mvnsite 18m 45s trunk passed
+1 💚 javadoc 8m 25s trunk passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04
+1 💚 javadoc 7m 30s trunk passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08
+0 🆗 spotbugs 0m 19s branch/hadoop-project no spotbugs output file (spotbugsXml.xml)
+1 💚 shadedclient 61m 12s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 55s Maven dependency ordering for patch
+1 💚 mvninstall 28m 54s the patch passed
+1 💚 compile 16m 2s the patch passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04
+1 💚 javac 16m 2s the patch passed
+1 💚 compile 15m 5s the patch passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08
+1 💚 javac 15m 5s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 4m 6s the patch passed
+1 💚 mvnsite 13m 44s the patch passed
+1 💚 shellcheck 0m 0s No new issues.
+1 💚 javadoc 8m 15s the patch passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04
+1 💚 javadoc 7m 34s the patch passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08
+0 🆗 spotbugs 0m 20s hadoop-project has no data from spotbugs
+1 💚 shadedclient 61m 1s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 798m 20s root in the patch passed.
+1 💚 asflicense 1m 28s The patch does not generate ASF License warnings.
1144m 59s
Subsystem Report/Notes
Docker ClientAPI=1.44 ServerAPI=1.44 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6470/4/artifact/out/Dockerfile
GITHUB PR #6470
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint spotbugs checkstyle markdownlint shellcheck shelldocs
uname Linux 0efad17d217f 5.15.0-88-generic #98-Ubuntu SMP Mon Oct 2 15:18:56 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 4dcebab
Default Java Private Build-1.8.0_392-8u392-ga-1~20.04-b08
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_392-8u392-ga-1~20.04-b08
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6470/4/testReport/
Max. process+thread count 3380 (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-6470/4/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.

@virajjasani
Copy link
Contributor

Looks like this can also cover HADOOP-19022

@steveloughran
Copy link
Contributor Author

it's similar, and that test was being (mistakenly) skipped locally as i don't have a default endpoint/region set. Not going to try and clean up the whole suite.

  • if I do set default region: no tests get skipped
  • with my PR, some tests get skipped, but not testRequestTimeout()
  • existing error which needs more work; signing overriding is a real moving target right now. Not of relevance to most people though.
[ERROR] Errors: 
[ERROR]   ITestS3AConfiguration.testS3SpecificSignerOverride:578 » SdkClient Unable to l...
[INFO] 
[ERROR] Tests run: 20, Failures: 0, Errors: 1, Skipped: 3

@steveloughran
Copy link
Contributor Author

tested: s3 london.

@mukund-thakur @hiteshs can you two look at this too?


conf.setBoolean(HTTP_SIGNER_ENABLED, true);
conf.setClass(HTTP_SIGNER_CLASS_NAME, SlowSigner.class, HttpSigner.class);
Duration duration = Duration.ofMillis(10);
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: add a comment saying this needs to be super less as compared to TIMEOUT_EXCEPTION_THRESHOLD as that value is used in test,

*/
public static void skipIfNotS3ExpressBucket(
Configuration configuration) {
assume("Skipping test as bucket is an S3Express bucket",
Copy link
Contributor

@mukund-thakur mukund-thakur Jan 29, 2024

Choose a reason for hiding this comment

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

not an s3Express

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

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 0s Docker mode activated.
-1 ❌ patch 0m 15s #6470 does not apply to trunk. Rebase required? Wrong Branch? See https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute for help.
Subsystem Report/Notes
GITHUB PR #6470
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6470/5/console
versions git=2.34.1
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

@steveloughran
Copy link
Contributor Author

something has gone wrong with me and stuff testing with s3a://landsat-pds/ right now: 403 on all access. Thought it was my s3 select stuff but it seems to blow up for me everywhere now.

anyway, doing this merge without worrying about it as it did work yesterday. maybe I've gone and broken my test setup

@steveloughran
Copy link
Contributor Author

S3 london with -Dparallel-tests -DtestsThreadCount=8. landsat tests failing.
they're also failing on command line installations I've set up, so either something bad has happened with regions/endpoints or there's been a change there

[ERROR] Failures: 
[ERROR]   ITestS3ACommitterFactory.testEverything:112->testImplicitFileBinding:127->assertFactoryCreatesExpectedCommitter:187->Assert.assertEquals:120->Assert.failNotEquals:835->Assert.fail:89 Wrong Committer from factory expected:<class org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter> but was:<class org.apache.hadoop.fs.s3a.commit.magic.MagicS3GuardCommitter>
[ERROR] Errors: 
[ERROR]   ITestS3AAWSCredentialsProvider.testAnonymousProvider:180 » IllegalArgument An ...
[ERROR]   ITestS3AConfiguration.testS3SpecificSignerOverride:577 » SdkClient Unable to l...
[ERROR]   ITestS3AFailureHandling.testMultiObjectDeleteNoPermissions:175 » IllegalArgument
[ERROR]   ITestS3AFailureHandling.testSingleObjectDeleteNoPermissionsTranslated:210 » IllegalArgument
[ERROR]   ITestDelegatedMRJob.testJobSubmissionCollectsTokens:247 » IllegalArgument An e...
[ERROR]   ITestDelegatedMRJob.testJobSubmissionCollectsTokens:247 » IllegalArgument An e...
[ERROR]   ITestSessionDelegationInFilesystem.testDelegatedFileSystem:347->readLandsatMetadata:614 » AccessDenied
[ERROR]   ITestS3GuardTool.testLandsatBucketRequireEncrypted:85->AbstractS3GuardToolTestBase.runToFailure:128->AbstractS3GuardToolTestBase.lambda$runToFailure$0:129 » IllegalArgument
[ERROR]   ITestS3GuardTool.testLandsatBucketRequireGuarded:68->AbstractS3GuardToolTestBase.runToFailure:128->AbstractS3GuardToolTestBase.lambda$runToFailure$0:129 » IllegalArgument
[ERROR]   ITestS3GuardTool.testLandsatBucketRequireUnencrypted:78->AbstractS3GuardToolTestBase.run:114 » IllegalArgument
[ERROR]   ITestS3GuardTool.testLandsatBucketUnguarded:61->AbstractS3GuardToolTestBase.run:114 » IllegalArgument
[ERROR]   ITestAWSStatisticCollection.testLandsatStatistics:56 » AccessDenied s3a://land...
[INFO] 

New test ITestCreateSessionTimeout to verify that the duration set
in fs.s3a.connection.request.timeout is passed all the way down.

This is done by adding a sleep() in a custom signer and verifying
that it is interrupted and that an AWSApiCallTimeoutException is
raised.

Improves javadocs of fs.s3a.connection.request.timeout.

Change-Id: I22ee270c536fe5d0a509b707e4cf0202cc930bb5
Change-Id: Ia78bc31a653895f17c715e441cc01d95a393245b
(which were only in for debugging)

Change-Id: Ib85c4f735263b1f4de05bb218e00c60e75e56cf3
This is to validate that the timeout is happening at the correct place
and there is no other operation which may be calling it earlier.

Change-Id: Ie975577d4519cc6964297c65788cc9d306761b02
Fix testRequestTimeout()
* doesn't skip if considered cross-region
* sets a minimum duration of 0 before invocation
* resets the minimum afterwards

Change-Id: If28a54bea50da6af2b59215d1e75a47a99e5e3d7
Change-Id: Ibf8deee08ae556b264fafafebabe0afa4bdff736
@steveloughran steveloughran force-pushed the s3/HADOOP-19045-createsession-timeouts branch from dd09709 to 6113e9a Compare January 30, 2024 13:10
@hadoop-yetus
Copy link

🎊 +1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 19s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 4 new or modified test files.
_ trunk Compile Tests _
+1 💚 mvninstall 32m 48s trunk passed
+1 💚 compile 0m 25s trunk passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04
+1 💚 compile 0m 18s trunk passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08
+1 💚 checkstyle 0m 18s trunk passed
+1 💚 mvnsite 0m 23s trunk passed
+1 💚 javadoc 0m 17s trunk passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04
+1 💚 javadoc 0m 19s trunk passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08
+1 💚 spotbugs 0m 44s trunk passed
+1 💚 shadedclient 21m 6s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+1 💚 mvninstall 0m 16s the patch passed
+1 💚 compile 0m 19s the patch passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04
+1 💚 javac 0m 19s the patch passed
+1 💚 compile 0m 15s the patch passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08
+1 💚 javac 0m 15s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 0m 10s the patch passed
+1 💚 mvnsite 0m 18s the patch passed
+1 💚 javadoc 0m 9s the patch passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04
+1 💚 javadoc 0m 15s the patch passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08
+1 💚 spotbugs 0m 39s the patch passed
+1 💚 shadedclient 23m 43s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 2m 10s hadoop-aws in the patch passed.
+1 💚 asflicense 0m 25s The patch does not generate ASF License warnings.
88m 11s
Subsystem Report/Notes
Docker ClientAPI=1.44 ServerAPI=1.44 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6470/6/artifact/out/Dockerfile
GITHUB PR #6470
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets
uname Linux e6cc280ba859 5.15.0-88-generic #98-Ubuntu SMP Mon Oct 2 15:18:56 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 6113e9a
Default Java Private Build-1.8.0_392-8u392-ga-1~20.04-b08
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_392-8u392-ga-1~20.04-b08
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6470/6/testReport/
Max. process+thread count 551 (vs. ulimit of 5500)
modules C: hadoop-tools/hadoop-aws U: hadoop-tools/hadoop-aws
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6470/6/console
versions git=2.25.1 maven=3.6.3 spotbugs=4.2.2
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

@virajjasani
Copy link
Contributor

@steveloughran I am also getting 403 for landsat-pds since yesterday. I was planning to keep it in backlog and look into it later on but IAM has S3 full access and yet i see 403 Access denied. Looks like something has changed globally.

@virajjasani
Copy link
Contributor

virajjasani commented Jan 30, 2024

Not only that, when i checked for any recent regression by running landsat-pds tests on relatively old branch (PR #6406 has outdated branch - 26 days older), it failed there too, with 403.

@steveloughran
Copy link
Contributor Author

ok, unrelated. we wil need to fix that. let's try some other public dataset

@steveloughran steveloughran merged commit 6da1a19 into apache:trunk Jan 30, 2024
4 checks passed
asfgit pushed a commit that referenced this pull request Jan 30, 2024

New test ITestCreateSessionTimeout to verify that the duration set
in fs.s3a.connection.request.timeout is passed all the way down.

This is done by adding a sleep() in a custom signer and verifying
that it is interrupted and that an AWSApiCallTimeoutException is
raised.

+ Fix testRequestTimeout()
* doesn't skip if considered cross-region
* sets a minimum duration of 0 before invocation
* resets the minimum afterwards

Contributed by Steve Loughran
jiajunmao pushed a commit to jiajunmao/hadoop-MLEC that referenced this pull request Feb 6, 2024
…#6470)



New test ITestCreateSessionTimeout to verify that the duration set
in fs.s3a.connection.request.timeout is passed all the way down.

This is done by adding a sleep() in a custom signer and verifying
that it is interrupted and that an AWSApiCallTimeoutException is
raised.

+ Fix testRequestTimeout()
* doesn't skip if considered cross-region
* sets a minimum duration of 0 before invocation
* resets the minimum afterwards

Contributed by Steve Loughran
steveloughran added a commit that referenced this pull request Feb 7, 2024
This is a followup to PR:
HADOOP-19045. S3A: Validate CreateSession Timeout Propagation (#6470)

Remove all declarations of fs.s3a.connection.request.timeout
in
- hadoop-common/src/main/resources/core-default.xml
- hadoop-aws/src/test/resources/core-site.xml

New test in TestAwsClientConfig to verify that the value
defined in fs.s3a.Constants class is used.

This is brittle to someone overriding it in their test setups,
but as this test is intended to verify that the option is not
explicitly set, there's no workaround.

Contributed by Steve Loughran
asfgit pushed a commit that referenced this pull request Feb 7, 2024
This is a followup to PR:
HADOOP-19045. S3A: Validate CreateSession Timeout Propagation (#6470)

Remove all declarations of fs.s3a.connection.request.timeout
in
- hadoop-common/src/main/resources/core-default.xml
- hadoop-aws/src/test/resources/core-site.xml

New test in TestAwsClientConfig to verify that the value
defined in fs.s3a.Constants class is used.

This is brittle to someone overriding it in their test setups,
but as this test is intended to verify that the option is not
explicitly set, there's no workaround.

Contributed by Steve Loughran
slfan1989 pushed a commit that referenced this pull request Feb 10, 2024

New test ITestCreateSessionTimeout to verify that the duration set
in fs.s3a.connection.request.timeout is passed all the way down.

This is done by adding a sleep() in a custom signer and verifying
that it is interrupted and that an AWSApiCallTimeoutException is
raised.

+ Fix testRequestTimeout()
* doesn't skip if considered cross-region
* sets a minimum duration of 0 before invocation
* resets the minimum afterwards

Contributed by Steve Loughran
slfan1989 pushed a commit that referenced this pull request Feb 10, 2024
This is a followup to PR:
HADOOP-19045. S3A: Validate CreateSession Timeout Propagation (#6470)

Remove all declarations of fs.s3a.connection.request.timeout
in
- hadoop-common/src/main/resources/core-default.xml
- hadoop-aws/src/test/resources/core-site.xml

New test in TestAwsClientConfig to verify that the value
defined in fs.s3a.Constants class is used.

This is brittle to someone overriding it in their test setups,
but as this test is intended to verify that the option is not
explicitly set, there's no workaround.

Contributed by Steve Loughran
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants