-
Notifications
You must be signed in to change notification settings - Fork 859
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
S3AsyncClient: stuck thread if upload failed #4801
Comments
After some debugging, I found out this:
|
Let's see at ...
returnFuture.whenComplete((r, t) -> {
if (t != null) {
s.cancel();
multipartUploadHelper.cancelingOtherOngoingRequests(futures, t);
}
}); Here method So, I suggest:
|
@chaykin apologies for the long silence. We made some changes recently in the CRT client connection handling (#4833, #4825, #4839), can you test a more recent version and confirm if you still see the issue? Just want to make sure it's not fixed in a latest version before start investigating. The latest version of the SDK is |
I tested with latest version ( |
Thank you for the detailed analysis. It makes sense; we need to cancel the upstream subscription when the downstream subscription is cancelled. |
Seeing the exact same behavior. Following the issue. Thanks! |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
I upload content by
S3AsyncClient#putObject
, it automatically splits to chunks, but for one of these, S3-server response error code 500. After this, CompletableFuture never completes (of fails) and, therefore, calling thread is stuckExpected Behavior
CompletableFuture completes with exception
Current Behavior
Thread is stuck.
Reproduction Steps
Create client:
Uploading content:
Result (omitted) log:
Full log: upload.log
Thread dump: s3-thread-dump.log
Possible Solution
No response
Additional Information/Context
No response
AWS Java SDK version used
2.21.32
JDK version used
java version "17.0.6" 2023-01-17 LTS
Java(TM) SE Runtime Environment (build 17.0.6+9-LTS-190)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.6+9-LTS-190, mixed mode, sharing)
Operating System and version
Ubuntu 22.04.3 LTS
The text was updated successfully, but these errors were encountered: