Skip to content

Support multipart_threshold for downloads using CRT - #10634

Merged
hssyoo merged 2 commits into
crt-config-v2from
crt-config/download-threshold
Sep 11, 2026
Merged

Support multipart_threshold for downloads using CRT#10634
hssyoo merged 2 commits into
crt-config-v2from
crt-config/download-threshold

Conversation

@hssyoo

@hssyoo hssyoo commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

CRT's S3 client exposes multipart_upload_threshold, so it's straightforward to map the CLI's multipart_threshold config value. But it currently doesn't expose or support multipart_download_threshold so we work around it by comparing the object size to multipart_threshold before handing off the request to CRT, and explicitly set the request type to S3RequestType.DEFAULT. See https://github.com/awslabs/aws-crt-python/blob/3a967bb6bee00acd099c23aa3d2bbc28e30ccf24/awscrt/s3.py#L464-L470

I intentionally made CRTTransferConfig minimal, only supporting multipart_threshold, because in the future we're going to want to remove this work and directly use a supported multipart_download_threshold interface. I wanted to avoid other changes trying to use the CRT transfer config.

@hssyoo
hssyoo requested a review from a team as a code owner September 11, 2026 19:47
@aemous aemous self-assigned this Sep 11, 2026
@aemous
aemous self-requested a review September 11, 2026 19:53

@aemous aemous left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few clarifying questions.

Comment thread .changes/next-release/enhancement-crt-69912.json
Comment thread tests/functional/s3transfer/test_crt.py Outdated
Comment thread tests/functional/s3transfer/test_crt.py Outdated
Comment thread tests/functional/s3transfer/test_crt.py Outdated
@aemous
aemous self-requested a review September 11, 2026 21:03

@aemous aemous left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@hssyoo
hssyoo merged commit 834ff62 into crt-config-v2 Sep 11, 2026
103 of 109 checks passed
@hssyoo
hssyoo deleted the crt-config/download-threshold branch September 11, 2026 21:07
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.

2 participants