Skip to content

Improving caching of S3 endpoints by omitting unused parameters#10165

Draft
ashovlin wants to merge 2 commits intoaws:v2from
ashovlin:skip-unused-s3-params
Draft

Improving caching of S3 endpoints by omitting unused parameters#10165
ashovlin wants to merge 2 commits intoaws:v2from
ashovlin:skip-unused-s3-params

Conversation

@ashovlin
Copy link
Copy Markdown
Member

@ashovlin ashovlin commented Mar 25, 2026

Issue #, if available: CLI-8066, variation of boto/botocore#3529

Description of changes: When resolving the endpoint for S3 operations, currently {'Key', 'Prefix', 'CopySource'} are defined as parameters in S3's rules, but aren't currently referenced. This is an issue for endpoint caching, since objects in the same bucket result in a unique set of endpoint parameters. So when running sync or cp -r for lots of objects in the same bucket, we need to recalculate the endpoint each object.

Now, we drop these three parameters specifically before passing them into the rules. This comes with a test that will begin failing when the rules start referencing these parameters (or add new, unused parameters).

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@ashovlin ashovlin force-pushed the skip-unused-s3-params branch from 6ba2a46 to 3a27dc2 Compare March 26, 2026 13:34
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.

1 participant