Repository navigation
Bump aws from 1.11.771 to 1.11.907 again, with aws-c-common v1.0.2 - #125080
Conversation
This reverts ClickHouse#125030 (merge 18b5a99), re-applying ClickHouse#124678 unchanged. The `ThreadSanitizer` race it exposed is fixed by the next commit. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Since 1.11.907, `Aws::Utils::Base64::Base64::Encode` delegates to `aws_base64_encode`, which caches the AVX2 check in the unsynchronized global `cpuid_state` on its first call. Two concurrent S3 writes then race on it and the `amd_tsan` server aborts: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=4915e63c4bc867f6e30b56c0742e63dc333e32f3&name_0=MasterCI&name_1=Integration%20tests%20%28amd_tsan%2C%206%2F6%29 v1.0.2 includes awslabs/aws-c-common#1280, which runs the detection in `aws_common_library_init`, reached from `Aws::InitAPI` in `S3::ClientFactory` before any request. It is the `aws-c-common` pin of aws-crt-cpp v0.43.9; the v0.14.5..v1.0.2 diff only adds API. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 2 findings) plus my own review (1 nit).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-9:20261010-140400 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-4:20261010-124700 |
|
Workflow [PR], commit [b17d968] Summary: ✅
AI ReviewSummaryThis PR re-lands the Final Verdict
|
Build profile diff (arm_release)Comparing Binary sizes
Only the stripped binary is compared: the official master build keeps debug symbols while PR builds strip them, so the other binaries differ by construction. The official master build is compiled with Object file sizes
|
| Object file | Master | PR | Δ |
|---|---|---|---|
contrib/aws-cmake/CMakeFiles/_aws.dir/__/aws/generated/src/aws-cpp-sdk-glue/source/GlueClient1.cpp.o |
5.60 MiB | 1.14 MiB | -4.46 MiB (-79.60%) |
contrib/aws-cmake/CMakeFiles/_aws.dir/__/aws/generated/src/aws-cpp-sdk-glue/source/GlueClient.cpp.o |
6.02 MiB | 1.59 MiB | -4.43 MiB (-73.57%) |
contrib/aws-cmake/CMakeFiles/_aws.dir/__/aws/generated/src/aws-cpp-sdk-s3/source/S3Client.cpp.o |
6.83 MiB | 2.74 MiB | -4.08 MiB (-59.82%) |
contrib/aws-cmake/CMakeFiles/_aws.dir/__/aws/generated/src/aws-cpp-sdk-glue/source/GlueClient2.cpp.o |
3.36 MiB | 569.57 KiB | -2.81 MiB (-83.46%) |
contrib/aws-cmake/CMakeFiles/_aws.dir/__/aws/src/aws-cpp-sdk-core/source/smithy/client/AwsSmithyCli… |
new | 1.14 MiB | +1.14 MiB |
contrib/aws-cmake/CMakeFiles/_aws.dir/__/aws/generated/src/aws-cpp-sdk-s3/source/model/PutObjectAnn… |
new | 253.71 KiB | +253.71 KiB |
contrib/aws-cmake/CMakeFiles/_aws.dir/__/aws/src/aws-cpp-sdk-core/source/http/crt/CRTHttpClient.cpp… |
338.89 KiB | 552.99 KiB | +214.10 KiB (+63.18%) |
contrib/aws-cmake/CMakeFiles/_aws.dir/__/aws/src/aws-cpp-sdk-core/source/endpoint/BDDEndpointProvid… |
new | 206.69 KiB | +206.69 KiB |
contrib/aws-cmake/CMakeFiles/_aws.dir/__/aws/generated/src/aws-cpp-sdk-s3/source/model/GetObjectAnn… |
new | 195.65 KiB | +195.65 KiB |
contrib/aws-cmake/CMakeFiles/_aws.dir/__/aws/generated/src/aws-cpp-sdk-s3/source/model/UpdateBucket… |
new | 189.54 KiB | +189.54 KiB |
contrib/aws-cmake/CMakeFiles/_aws.dir/__/aws/src/aws-cpp-sdk-core/source/smithy/client/schema/Schem… |
new | 186.06 KiB | +186.06 KiB |
contrib/aws-cmake/CMakeFiles/_aws.dir/__/aws/src/aws-cpp-sdk-core/source/smithy/client/schema/XmlSh… |
new | 183.53 KiB | +183.53 KiB |
contrib/aws-cmake/CMakeFiles/_aws.dir/__/aws/generated/src/aws-cpp-sdk-s3/source/model/DeleteObject… |
new | 179.47 KiB | +179.47 KiB |
contrib/aws-cmake/CMakeFiles/_aws.dir/__/aws/generated/src/aws-cpp-sdk-s3/source/model/ListObjectAn… |
new | 171.54 KiB | +171.54 KiB |
contrib/aws-cmake/CMakeFiles/_aws.dir/__/aws/src/aws-cpp-sdk-core/source/smithy/client/schema/Query… |
new | 167.34 KiB | +167.34 KiB |
contrib/aws-cmake/CMakeFiles/_aws.dir/__/aws/src/aws-cpp-sdk-core/source/smithy/client/schema/JsonS… |
new | 130.75 KiB | +130.75 KiB |
contrib/aws-cmake/CMakeFiles/_aws.dir/__/aws/generated/src/aws-cpp-sdk-glue/source/model/IcebergTab… |
new | 122.72 KiB | +122.72 KiB |
contrib/aws-cmake/CMakeFiles/_aws.dir/__/aws/src/aws-cpp-sdk-core/source/smithy/client/schema/XmlSh… |
new | 113.50 KiB | +113.50 KiB |
contrib/aws-cmake/CMakeFiles/_aws.dir/__/aws/generated/src/aws-cpp-sdk-glue/source/model/DataQualit… |
new | 111.41 KiB | +111.41 KiB |
contrib/aws-cmake/CMakeFiles/_aws.dir/__/aws/generated/src/aws-cpp-sdk-glue/source/model/ListIntegr… |
new | 109.34 KiB | +109.34 KiB |
719 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only clickhouse-bundle) and not compared.
Compile time of recompiled translation units
2151 translation units recompiled, 3066 s compile time in total, 2151 of them have a recent master baseline.
Median compile-time ratio to the baselines is ×0.94 (machine-speed difference or a change affecting every TU); per-TU deltas below are relative to that ratio.
The matched translation units cost -299.8 s (-9%) in total before that adjustment.
Related: #124678
Related: #125030
Related: #125039
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Update
aws-sdk-cppto 1.11.907, the AWS CRT libraries to the 0.43.8 release set, andaws-c-commonto 1.0.2.Description
This re-lands #124678, reverted by #125030, together with
aws-c-commonv1.0.2, which carries the upstream fix for the race that caused the revert.With 1.11.907,
Aws::Utils::Base64::Base64::Encodedelegates toaws_base64_encode, so theContent-MD5of every S3 write goes through it. Its first call caches the AVX2 check in the unsynchronized globalcpuid_state; the first call on one thread and a later call on another race on it, and theamd_tsanserver aborts (report). Since v1.0.2 (awslabs/aws-c-common#1280),aws_common_library_initruns that detection once, and ClickHouse reaches it throughAws::InitAPIinS3::ClientFactorybefore any request.awsfrom 1.11.771 to 1.11.907 #124678 unchanged (same patch id); its notes on CVEs and on the ClickHouse-side CMake changes still apply.contrib/aws-c-commonfrom v0.14.5 to v1.0.2, the pin of aws-crt-cpp v0.43.9. The v0.14.5..v1.0.2 diff removes or changes no public declaration and adds or removes no source file, so no CMake change is needed.Validation on local TSan builds of commit 1 and commit 2:
aws_base64_encodeafteraws_common_library_init: 20/20 runs report the race on v0.14.5, 0/200 on v1.0.2 (20/20 on v1.0.2 without the init call).test_s3_plain_rewritable_crash_recovery: on v0.14.5 the module fails with this report, as in CI; on v1.0.2, 3/3 full runs pass with no TSan report.test_refreshable_mv(whole module) also passes on v1.0.2 with no TSan report.Integration tests (amd_tsan, targeted)was skipped on #124678, so this PR's CI will likely not run these tests either; the numbers above are local.If you prefer to keep
aws-c-commonat v0.14.5, #125039 ignores the race in the TSan build instead.Workflow [PR]
Sync PR [sync-upstream/pr/125080]
Version info
26.10.1.2203-master(included in26.10and later)