-
Notifications
You must be signed in to change notification settings - Fork 549
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 TransferUtility: Lower the minimum notification threshold of 128KB #611
Comments
Hi @hipwelljo Thanks your reporting. I have a question for the issue. |
They are photos taken with the device’s camera. In the emulator this is the funky animating box they play as a camera feed. So a few MB at max, usually about or under 1 MB I’d say. |
I am now trying this on a physical device (Google pixel android 7.1.2) and I see the same behavior with about a 0.15 MB photo - only 0 and 100%. Just now I did see an 89% reported. This is on an edge network connection so it takes a bit of time to upload. I tried a 1.6 MB photo and it did report more progress. Is there a way to reliably get progress updates if the file is small yet the internet connection isn't great? |
This appears to be a limitation in our code that doesn't allow setting the granularity very well. We will investigate enabling finer granularity progress reporting and update this thread. |
@hipwelljo Just wanted to know if this issue is still persistent after customizing the notification threshold? |
Yes, I’ve set it to 10 currently. |
@hipwelljo The minimum notification threshold that |
Besides that, Root cause analysis:
Description of the fix: The fix involves
See 2.11.1 for more information. |
Gotcha. Is there a way to reduce that buffer size? It seems our photos are generally within the range of 50-100 KB. |
@hipwelljo Unfortunately, the current minimum that the SDK supports in 128KB. |
Ok! Then this can be marked enhancement request instead of bug ;) |
@hipwelljo I have made the necessary modifications to the title and the state of the issue. Thank you! |
Checking in here as this issue is now more than 2 years old and Android devices do not take pictures anymore that are lower than 128KB. I am going to go ahead and close this issue as a "Wont do" based on what Kvasukib mentioned and the limitations. Feel free to reopen if this still persists. |
Describe the bug
I am utilizing the TransferUtility to upload a file and using TransferObserver to set a TransferListener to be informed of state changes, progress changes, and any errors should one occur. The file is uploading successfully, however I am not being informed of any upload progress aside from 0% and 100%. (The callback is often triggered multiple times for the same percentage which is already being tracked in issue #406.) As you can see here, I am getting no progress aside from started/finished.
To Reproduce
Steps to reproduce the behavior:
Which AWS service(s) are affected?
AWS S3 TransferUtility
Expected behavior
Progress should be reported as bytes are uploaded
Screenshots
None
Environment(please complete the following information):
Device Information (please complete the following information):
Code
If helpful, this is how I initialize it in my startup activity:
(As an aside, is there a way to get the already initialized transfer utility later when I go to upload? Is it creating two different transferUtilitys as it is now?)
Other Info
I have also tried configuring the client to change the notification threshold to see if that would cause more progress to be reported but I still only see 0% and 100%.
To simulate slow network conditions, I enabled the network link conditioner on macOS to simulate an edge data connection, so the file doesn't upload quickly.
The text was updated successfully, but these errors were encountered: