Skip to content

Improving caching of S3 endpoints by omitting unused parameters#10165

Merged
ashovlin merged 3 commits intoaws:v2from
ashovlin:skip-unused-s3-params
Apr 23, 2026
Merged

Improving caching of S3 endpoints by omitting unused parameters#10165
ashovlin merged 3 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
@ashovlin ashovlin force-pushed the skip-unused-s3-params branch from 55c2534 to 513dc77 Compare April 22, 2026 20:37
@ashovlin ashovlin marked this pull request as ready for review April 22, 2026 20:38
@aemous aemous self-requested a review April 23, 2026 13:24
Copy link
Copy Markdown
Contributor

@aemous aemous left a comment

Choose a reason for hiding this comment

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

LGTM

@ashovlin ashovlin merged commit 5cd6c19 into aws:v2 Apr 23, 2026
89 of 91 checks passed
@ashovlin ashovlin deleted the skip-unused-s3-params branch April 23, 2026 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants