You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gate no-HEAD download path on response_checksum_validation=when_required
Address reviewer feedback (SDKs durability team): HEAD requests are
required by default for full-object checksum validation on downloads.
Only skip the HEAD when the caller has already opted out of response
checksum validation via botocore's `response_checksum_validation =
when_required` config. The prior HEAD + size-based GET logic is restored
as the default path.
This conditional is temporary; it can be removed once S3 supports
returning checksums for ranged GETs (tracking: P320750170).
Also:
- Add TestDownloadWhenRequiredChecksumValidation covering the HEAD-less
path for non-empty and 0-byte objects (InvalidRange handling)
- Fix ruff import ordering / formatting in time-batch-download.py
flagged by the Lint CI action
"description": "Skip the HEAD request during downloads when the client is configured with ``response_checksum_validation='when_required'``, reducing latency for small-object transfers. The HEAD request remains in place by default to enable full-object checksum validation until S3 supports returning checksums for ranged GETs."
0 commit comments