Transfer.waitForCompletion() completes even TransferState is Waiting #3169
Labels
bug
This issue is a bug.
closed-for-staleness
p2
This is a standard priority issue
response-requested
Waiting on additional info or feedback. Will move to "closing-soon" in 5 days.
Upcoming End-of-Support
Describe the bug
In our spring boot application, we are using transferManager and uploadFileList method to upload a file. Also, we are waiting for upload to get completed with blocking operation waitForCompletion() but intermittently for few requests waitForCompletion method returning the control to the actual main thread even though Transfer state is Waiting where as per the documentation we were expecting waitForCompletion() to return the control the actual thread only after the transfer is complete i.e Transfer state is one of the Completed, Canceled or Failed.
Regression Issue
Expected Behavior
waitForCompletion() to return the control the actual thread only after the transfer is complete i.e Transfer state is one of the Completed, Canceled or Failed
Current Behavior
Intermittently, waitForCompletion() to returns the control the actual thread even if transfer state is Waiting.
Reproduction Steps
This issue is intermittent and seems like concurrency issue. Hence, hard to reproduce.
Possible Solution
No response
Additional Information/Context
No response
AWS Java SDK version used
1.12.261
JDK version used
17
Operating System and version
TBA
The text was updated successfully, but these errors were encountered: