Skip to content

Revert "Bump aws from 1.11.771 to 1.11.907" - #125030

Merged
fm4v merged 1 commit into
masterfrom
revert-124678
Oct 10, 2026
Merged

fm4v merged 1 commit into
masterfrom
revert-124678

Conversation

@clickhouse-gh

@clickhouse-gh clickhouse-gh Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Reverts #124678

This pull request was reverted automatically by the Revert CI regressions job, which found that it
introduced a failure that keeps happening on master, and merged this revert without waiting
for checks so that master is usable again.

Failure: test test_s3_plain_rewritable_crash_recovery/test.py::test_existing_look_alike_directory_stays_usable in Integration tests (amd_tsan, 6/6)

Seen 2 times on 2 master commits in the last
24 hours, between 2026-10-10 00:32:45 and 2026-10-10 01:02:36 UTC.

Most recent report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=0d2ade0236287ba0cda1894d23046f57c59abea1&name_0=MasterCI&name_1=Integration%20tests%20%28amd_tsan%2C%206%2F6%29&name_1=Integration%20tests%20%28amd_tsan%2C%206%2F6%29

Why this pull request:

In Integration tests (amd_tsan, 6/6), this test was still passing on d3f757c00025533deef343087af15d517c244029 at 2026-10-10 00:07:01 UTC and then failed on the very next tested master commit, merge commit 96aa0525f240299456ef0358bcbd17a3b7111a97 (Merge pull request #124678 / bump-aws-1.11.907), at 2026-10-10 00:23:23 UTC; git log --first-parent d3f757c00025533deef343087af15d517c244029..96aa0525f240299456ef0358bcbd17a3b7111a97 contains only that merge. The failing stack is a ThreadSanitizer data race in the AWS S3 request-building path (aws_common_private_has_avx2 -> Aws::Crt::Base64Encode -> Aws::Client::AWSClient::AddContentBodyToRequest -> DB::S3::Client::BuildHttpRequest), and #124678 is exactly the PR that bumps the AWS SDK submodules (contrib/aws, contrib/aws-c-common, contrib/aws-crt-cpp, contrib/aws-c-s3, etc.), which matches the failure mechanism. The same tsan failure then repeats on later master commits 4915e63c4bc867f6e30b56c0742e63dc333e32f3 and 0d2ade0236287ba0cda1894d23046f57c59abea1, and I do not see a later non-skipped amd_tsan pass or a merged fix. There was one older, isolated asan Connection refused failure on 2026-10-08 in a different check, but it was surrounded by passes and did not include this ThreadSanitizer race, so it does not change the attribution of the current regression.

A draft pull request reintroducing the change is opened right after this one is merged, so the change
can come back through normal CI once the failure is fixed. Every investigation this job makes,
including the ones that revert nothing, is recorded in the checks_investigated table of the CI
database.

If this revert is wrong, say so here and bring the change back: the job errs towards reverting
because a broken master blocks everybody, not because its judgement beats yours.

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):


Workflow [PR]
Sync PR [sync-upstream/pr/125030]

Version info

  • Merged into: 26.10.1.2003-master (included in 26.10 and later)

@clickhouse-gh

clickhouse-gh Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor Author

Workflow [PR], commit [d37c29e]

Summary: ✅

@clickhouse-gh clickhouse-gh Bot added pr-ci submodule changed At least one submodule changed in this PR. labels Oct 10, 2026
@fm4v
fm4v added this pull request to the merge queue Oct 10, 2026
@fm4v

fm4v commented Oct 10, 2026

Copy link
Copy Markdown
Member

@groeneai open revert of this PR with the fix of the issue

Merged via the queue into master with commit 18b5a99 Oct 10, 2026
163 checks passed
@fm4v
fm4v deleted the revert-124678 branch October 10, 2026 12:09
@groeneai

Copy link
Copy Markdown
Collaborator

Acknowledged. I am opening a PR that brings back the AWS SDK 1.11.907 bump together with a fix for the cpuid_state TSan race in aws-c-common (analysis in #125039); I will follow up here with the link shortly.

@groeneai

Copy link
Copy Markdown
Collaborator

Opened #125080. It re-lands #124678 unchanged and bumps aws-c-common to v1.0.2, whose aws_common_library_init runs the AVX2 detection once (awslabs/aws-c-common#1280), so the cpuid_state race is fixed rather than suppressed. PR CI did not run the TSan carriers on #124678, so I checked both directions on local TSan builds; the numbers are in the PR description.

@fm4v

fm4v commented Oct 10, 2026

Copy link
Copy Markdown
Member

@groenai investigate why this error wasn't catched in PR. Is it because of targeted integration tests? Suggest solutions to not introduce such problems in the future

@alexey-milovidov

Copy link
Copy Markdown
Member

@groeneai ^

@groeneai

Copy link
Copy Markdown
Collaborator

Yes, it is the targeted selection.

  • In PRs the sanitizer integration tests run only as Integration tests (<build>, targeted). That job runs the changed test modules, the modules owning changed test files, the tests covering the changed lines and the tests that failed in the PR before (integration_test_job.py#L1826-L1868).
  • Bump aws from 1.11.771 to 1.11.907 #124678 changes only gitlinks under contrib/, .gitmodules and contrib/aws-cmake/CMakeLists.txt. A gitlink diff is one Subproject commit line, and third-party code is built without coverage instrumentation (contrib/CMakeLists.txt#L16), so the coverage selector has nothing to map. All four targeted integration jobs were skipped with No changed tests, and no tests found by coverage or previous failures (amd_tsan report).
  • The full integration suite ran only on non-sanitizer builds (amd_llvm_coverage, 1/8..8/8 and amd_binary_excluded_from_llvm), where a data race is invisible.
  • Stress test (amd_tsan) passed, and it is a weak detector for this race: today it hit the cpuid_state report in 5 of 115 PR runs and in 0 of the 12 master commits with the bump. Integration tests (amd_tsan, 6/6) failed on 8 of the 9 master commits with the bump that ran it.

Suggestions:

  1. Run the full Integration tests (amd_tsan, 1/6..6/6) shards (the master set) in PRs that change a gitlink under contrib/: add them to ci/workflows/pull_request.py and skip them in should_skip_job (ci/jobs/scripts/workflow_hooks/filter_job.py) unless such a gitlink changed. In the last 30 days 92 PRs with the submodule changed label were merged into master, while master ran these shards on 1258 commits (about 100 minutes per shard), so the extra load is about 7% per pushed head. The amd_msan and amd_asan_ubsan shards can be added under the same rule if that cost is acceptable.
  2. Cheaper but weaker: map a changed contrib/<lib> gitlink to the ClickHouse sources that include its headers (for contrib/aws*: src/IO/S3/, src/Disks/DiskObjectStorage/ObjectStorages/S3/ and a few more) and feed them to the coverage selector, or give gitlinks a fallback batch like the existing harness one (L1852-L1860). Neither is guaranteed to select the carrier, and I have not measured either on this case.

#125080 has the same diff shape, so its PR CI is blind in the same way; its local TSan A/B is in the description. I can send the PR for (1) if that direction is fine.

alexey-milovidov added a commit that referenced this pull request Oct 10, 2026
Resolve the conflict in `src/IO/S3/PocoHTTPClient.cpp` with the master change that reads
the error response a server sends before reading the whole request body. The branch writes
the body through `HTTPRequestBodyWriteBuffer` instead of `std::ostream`, so the early
response is now read with the new `receiveEarlyHTTPResponse` (built on
`HTTPClientSession::receiveEarlyResponse`), and the body is finalized inside the `try`
block so that the failure of the last write is handled the same way. When the early
response is used, the request body is left unfinalized and the connection is not reused.

The merge also brings the revert of the `aws` bump (#125030), which caused the TSan data
race on `cpuid_state` that failed the stress test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
groeneai pushed a commit to groeneai/ClickHouse that referenced this pull request Oct 11, 2026
Targeted integration jobs select tests by the coverage of the changed lines, and third-party code is built without coverage, so a submodule bump selects no test while a data race in the bumped library is visible only under TSan.

Related: ClickHouse#125030
Related: ClickHouse#124678
fhw12345 pushed a commit to fhw12345/ClickHouse that referenced this pull request Oct 12, 2026
Include the upstream rollback of the AWS SDK upgrade associated with the `aws_common_private_has_avx2` TSan reports. Preserve the count-projection fixes and reduced regression-test workload.

Related: ClickHouse#125030

Related: ClickHouse#78271

CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=78271&sha=6bdd5ab22238a2d8ae0e11967860d3e3297ff2a5&name_0=PR&name_1=Integration%20tests%20%28amd_tsan%2C%20targeted%29
huldarchen pushed a commit to huldarchen/ClickHouse that referenced this pull request Oct 12, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-ci pr-synced-to-cloud The PR is synced to the cloud repo submodule changed At least one submodule changed in this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants