-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Improve S3 upload speeds using aws transfer manager #17674
base: master
Are you sure you want to change the base?
Conversation
@@ -201,7 +201,7 @@ | |||
|
|||
private MockAmazonS3Client() | |||
{ | |||
super(new AmazonS3Client(), new NoopServerSideEncryption()); | |||
super(new AmazonS3Client(), new NoopServerSideEncryption(), new S3TransferConfig()); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note test
AmazonS3Client.AmazonS3Client
extensions-core/s3-extensions/src/main/java/org/apache/druid/storage/s3/S3TransferConfig.java
Outdated
Show resolved
Hide resolved
@@ -96,6 +96,9 @@ public boolean apply(Throwable e) | |||
// This can happen sometimes when AWS isn't able to obtain the credentials for some service: | |||
// https://github.com/aws/aws-sdk-java/issues/2285 | |||
return true; | |||
} else if (e instanceof InterruptedException) { | |||
Thread.interrupted(); // Clear interrupted state and not retry |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to clear the interrupted flag.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The intention is to gracefully stop the retry operations.
Although, The flag would already be cleared when the InterruptedException is thrown.
Let me know if your suggestion is to modify it.
Fixes #17669.
Description
Release note
Improved S3 Upload Performance in Druid
common.runtime.properties
This PR has: