-
Notifications
You must be signed in to change notification settings - Fork 928
Retry support for Java-based S3 multipart client for multipart GET to bytes #6328
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
base: master
Are you sure you want to change the base?
Retry support for Java-based S3 multipart client for multipart GET to bytes #6328
Conversation
@@ -60,11 +63,30 @@ public void onStream(SdkPublisher<ByteBuffer> publisher) { | |||
publisher.subscribe(new BaosSubscriber(cf)); | |||
} | |||
|
|||
public void onStream(SdkPublisher<ByteBuffer> publisher, long maximumBufferSize) { |
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.
Hmm, not sure if we want to add another onStream here, why do we need this?
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.
Was thinking to use maximumBufferSize for large part sizes, but ByteArrayAsyncResponseTransformer loads everything into memory anyways so its redundant. Will revert this addition
This reverts commit 1d136e5.
|
Motivation and Context
Add retry support for Java-based S3 multipart client when multipart downloading with
ByteArrayAsyncResponseTransformer
Modifications
ByteArraySplittingTransformer
SplittingTransformer
but eachIndividualTransformer
creates a newByteArrayAsyncResponseTransformer
, in order to support retriesByteArrayAsyncResponseTransformer
split()
to useByteArraySplittingTransformer
Testing
Add Wiremock tests and refactor existing tests
Types of changes