Repository navigation
Backport fix for GCS over S3 disk broken by aws-sdk-cpp 1.11.771 to 25.8 - #103542
Conversation
|
@alesapin could you trigger CI/CD? |
|
@alesapin @alexey-milovidov could we trigger CI/CD here? |
|
Workflow [BackportPR], commit [942ead5] |
Stress test (amd_tsan) failure analysisThe CI failure in Stress test (amd_tsan) is not related to this PR. Root cause of the crash: Stack trace points to MergeTree transactions trying to use Triggered by test This PR only modifies Branch status: up to date with |
…-checksum-fix-to-25.8
Set RequestChecksumCalculation/ResponseChecksumValidation to WHEN_REQUIRED to prevent the new AWS SDK from injecting x-amz-checksum-mode and chunked transfer-encoding headers that MinIO does not support and that break gtest_aws_s3_client's AppendExtraSSECHeaders* tests. Same as upstream/25.8 commit c14a192 (merged via PR ClickHouse#103542), which was not part of v25.8.23.13-lts. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Backport of commit
659369ead95("Fix very weird issue") to the25.8branch.Problem
After bumping
aws-sdk-cppto 1.11.771 in PR #100582 (backported to 25.8.22), GCS over S3 disks stopped working with the following error on server startup:The new SDK changed the default checksum behavior to
WHEN_SUPPORTED, which means it automatically addsx-amz-checksum-algorithm: CRC32headers to all S3 requests. GCS's S3-compatible API does not fully support AWS Flexible Checksums and returns checksum values that the SDK considers invalid.Fix
Set
checksumConfigtoWHEN_REQUIREDinPocoHTTPClientConfigurationso that checksum headers are only sent when explicitly required (matching the behavior before SDK 1.11.771):This fix is already present in
25.10.xand26.3.xbut was never backported to25.8.See issue: #103232
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fixed
S3_ERROR: Response checksums mismatchwhen using GCS over S3 disks after upgrading to 25.8.22 (caused byaws-sdk-cpp1.11.771 enabling CRC32 flexible checksums by default, which GCS does not support).Documentation entry for user-facing changes