Skip to content

[S3] Respect chunk_size in download_object_as_stream#2168

Open
Sanjays2402 wants to merge 1 commit into
apache:trunkfrom
Sanjays2402:fix/s3-stream-chunk-size
Open

[S3] Respect chunk_size in download_object_as_stream#2168
Sanjays2402 wants to merge 1 commit into
apache:trunkfrom
Sanjays2402:fix/s3-stream-chunk-size

Conversation

@Sanjays2402

Copy link
Copy Markdown
Contributor

Closes #1798

Description

download_object_as_stream and download_object_range_as_stream in the S3
driver passed the hardcoded module-level CHUNK_SIZE to
response.iter_content() instead of the chunk_size given by the caller, so a
user-specified chunk size was silently ignored. They now forward chunk_size
(falling back to CHUNK_SIZE), matching the backblaze_b2 and cloudfiles
drivers. Added a regression test.

Status

  • done, ready for review

Checklist (tick everything that applies)

download_object_as_stream and download_object_range_as_stream passed the
hardcoded module-level CHUNK_SIZE to response.iter_content instead of the
chunk_size supplied by the caller, so a user-specified chunk size was
silently ignored. Forward chunk_size (falling back to CHUNK_SIZE) as the
sibling drivers already do.

Closes apache#1798
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chunk_size is ignored for download_object_as_stream with s3 provider

1 participant