-
Notifications
You must be signed in to change notification settings - Fork 853
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
TransferListener bytesTransferred did not complete 100% with S3AsyncClient.crtBuilder() during directoryDownload #5527
Comments
Hi @arjugane
|
Hi @debora-ito,
Example structure below ( sample s3 key for each file )
For example, for the very large files case, directoryDownload will try to only download large file ( it is usually single file referring to
Note : I've deployed following AWS SDK and AWS CRT versions in prod -
|
Furthermore, until the summer this year, this micro-service was using AWS SDK 1.x with Java 17. If we rollback to this version, of course, we never bump into the above described problem ( as it didn't have / use S3AsyncClient + S3TransferManager ). Recently I bumped the service with AWS SDK 2.x with Java 21 ( S3AsyncClient + S3TransferManager ) using AWS CRT builder. |
Oh I see, the issue is that the transfer listener doesn't print "100%", it jumps from some percentage directly to "Transfer complete!". I have some follow-up questions:
|
Sure, @debora-ito ,
|
@arjugane let us know what you find with the CRT trace logging and if you see the same issue when using |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
Using S3AsyncClient.crtBuilder(), TransferListner bytesTransferred does not complete to 100% during directoryDownload operation.
Expected Behavior
TransferListener should work as expected during downloadDirectory operation even for large files
Current Behavior
Problem statement: Using S3AsyncClient.crtBuilder(), TransferListner bytesTransferred does not complete to 100% during directoryDownload. But it says Transfer Complete
Use case: Downloading very large files ( eg: 37 gigs, 67gigs, 80 gigs, and even more than 100+ gigs )
For one particular case ( 83 gigs file ), I saw following logs ( in sequence ) :-
Note : this is the case where file that was downloaded was incomplete
There is neither warning nor error with respect to FailedTransfers, etc during directoryDownload.
Hence, this has been very hard to understand and suspect where the underlying problem is..?
Note that the issue has been very intermittent here.
Reproduction Steps
Using following crtBuilder() builder -
Using following directoryDownload builder -
Possible Solution
No response
Additional Information/Context
No response
AWS Java SDK version used
2.26.15
JDK version used
21-latest
Operating System and version
linux/alpine
The text was updated successfully, but these errors were encountered: