Multipart concurrent chunk upload is inefficient. #2817
Labels
pending-triage
Issue is pending triage
s3
Issues with the AWS Android SDK for Simple Storage Service (S3).
Describe the bug
This PR(2804) unblocked us to try concurrent multipart upload and it is a great change. But, unfortunately, there is a bug in this feature. Redundant part uploads are happening. I uploaded a 7.8MB file with two parts (Part1: 5MB, Part2: 2.8MB) as I opted for the smallest chunk size of 5MB. But, AWS SDK uploaded five parts like 2(Part2),1(Part1),2,1,2 (That is, Part2 uploaded three times and Part1 two times) [Screenshot of the part upload sequence attached below]
To Reproduce
This is a major performance issue in this feature and the feature is inefficient to use in a production app (uploaded around 20MB for a 7.8MB file)
A code sample or steps:
Which AWS service(s) are affected?
S3 file upload
Expected behavior
Redundant part uploads should not be happened. For a 7.8MB file, only 2 parts to be uploaded if the max part size is selected as 5MB.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment Information (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: