ByteBufferStoringSubscriber.blockingTransferTo hanging indefinitely #5755
Labels
bug
This issue is a bug.
investigating
This issue is being investigated and/or work is in progress to resolve the issue.
Describe the bug
Our application uses SDK v2
s3AsyncClient
to sendgetObject
request and chain futures to process the response.We noticed that the sdk client thread
sdk-async-response-*
is stuck when reading the InputStream converted byAsyncResponseTransformer.toBlockingInputStream()
.Implementation following:
Futures to read from inputStream is chained based on this
future
:Stack trace following:
A couple of questions:
s3AsyncClient.getObject
:e.g. Is there a way to specify timeout when using the S3AsyncClient to avoid indefinite blocking ?
Could we expose exception so we can handle it from client side to avoid the indefinite blocking ?
Regression Issue
Expected Behavior
We expect the reading from inputStream to be successful into the destination buffer.
Current Behavior
The inputStream reading blocks indefinitely(
software.amazon.awssdk.utils.async.ByteBufferStoringSubscriber.blockingTransferTo
)Reproduction Steps
Same as the code snippet above.
Possible Solution
No response
Additional Information/Context
No response
AWS Java SDK version used
2.27.9
JDK version used
Java 21
Operating System and version
Linux Wolfi, aarch64
The text was updated successfully, but these errors were encountered: