-
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
S3 TransferListener Progress percent not work properly when uploading byte arrays #4114
Comments
둘다 정상적으로 동작하지 않습니다. When uploading file,
below code
When uploading byte arrays
|
I think the current TransferListener is monitoring the progress of the conversion from File -> byte array. Therefore, when uploading a byte array, When uploading with Paths.get(dir), the progress is monitored as Users using s3 uploads/downloads want to see the full progress of the final upload to s3, not the file->to-byte-array conversion. The above matters are judged to need improvement. So, please work on improving the request. |
Transferring to the Java SDK v2 repo. I think we got a previous report of this same issue but I couldn't find it here... |
I believe we hit this bug as well. What we observe when uploading a file is this: After we've already reached 100%, minutes pass without any calls to Presumably the real transfer happens during this long pause. Finally the transfer ends. It seems, as someone pointed out in a previous comment, that the progress being tracked is for transferring bytes from the file into some memory buffer, not transferring them to S3. NB: We're uploading a file, not a byte array. |
Let's track this issue in #3670. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
0.0 => 100.0% => (4min 25sec later) => Transfer complete!
It didn't show process percent gradually.
source code
I impleneted TransferListener classs. (S3PrintStackListener)
capture
Expected Behavior
Below code is s3 file download. It work properly.
The progress percent image is below
Current Behavior
I think this problem no needed include log
Reproduction Steps
Just watch console
Possible Solution
No response
Additional Information/Context
No response
AWS Java SDK version used
software.amazon.awssdk 2.20.76, software.amazon.awssdk.s3-transfer-manager 2.20.75, software.amazon.awssdk.crt.aws-crt 0.21.17
JDK version used
OpenJDK Runtime Environment AdoptOpenJDK-11.0.11+9 (build 11.0.11+9)
Operating System and version
MacBookPro18
The text was updated successfully, but these errors were encountered: