ObjectSize and Potentially FirstPart Request
ObjectSize and Potentially Fir...
Validate Checksum?
Validate Checksu...
4
4
User makes a GetObject Request
User makes a GetObje...
No
No
Default Request
Default Request
Yes
Yes
No
No
Yes
Yes
No
No
Yes
Yes
Yes
Yes
HeadObject
HeadObject
GetObject with partNumber=1
GetObject with partN...
No
No
Parallel Download All Parts
Parallel Download All Parts
No
No
Has
More Parts?
Has...
6
6
GetObject with range of part
GetObject with range...
Yes
Yes
End
End
  1. If the initial request contains a partNumber, we currently send it as a default request since we have not yet implemented downloading a single part with splitting.
  2. If there was a range header without a startRange, we perform a HeadObject to determine the startRange first; otherwise, we execute a GetObject from the startRange.
  3. If the size_hint indicates a small file, we execute GetObject with partNumber=1 to avoid the HeadObject for small files. If the actual part size exceeds our part_size, we cancel the request upon receiving the headers and retrieve the first part again as part of parallelized ranged gets. Otherwise, we perform a HeadObject to discover both the object size and checksum if available.
  4. If checksum validation is enabled, we validate the checksum for part aligned ranged gets and also have a workaround to validate checksum if the file was uploaded as a single part but is now being downloaded as multipart. This is done using HeadObject or GetObject with partNumber=1.
  5. When we do the first GetObject with range request to discover object size, it can fail if the file is empty. Now that we know the file is empty, we send another GetObject with partNumber=1 request to provide successful response headers to the user.
  6. We perform multiple GetObject with range requests in parallel to download the remaining portion of the file once its total size is known.
If the initial request contains a partNumber, we currently send it as a default request since we have not yet implemented d...
Contains
partNumber?
Contains...
1
1
EmptyFile
Error?
EmptyFile...
5
5
Yes
Yes
Legend
Request to S3
Request to S3
Comment
Comment
No
No
Yes
Yes
No
No
Yes
Yes
GetObject with range 0-partSize
GetObject with range...
Test tooltip Test tooltip
Contains
 Range
Header?
Contains...
No
No
Test tooltip Test tooltip
EmptyFile?
EmptyFile?
5
5
GetObject from startRange
GetObject from start...
size_hint_available &&
size_hint<=part_size
size_hint_available &&...
3
3
Contains
Start Range?
Contains...
2
2
Text is not SVG - cannot display