Skip to content

BuzzHouse: do not enable the tcp_handler_fail_connection_setup fail point - #107689

Merged
alexey-milovidov merged 2 commits into
masterfrom
fix-buzzhouse-tcp-failpoint-persists
Jun 19, 2026
Merged

alexey-milovidov merged 2 commits into
masterfrom
fix-buzzhouse-tcp-failpoint-persists

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Jun 16, 2026 •

Copy link
Copy Markdown
Member

Related: #100412

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):

Fix spurious BuzzHouse job failures caused by the fuzzer enabling the tcp_handler_fail_connection_setup fail point.

tcp_handler_fail_connection_setup (added in TCPHandler::runImpl by commit 4e30ea9c4c2) is a REGULAR fail point that makes every new TCP connection setup throw MEMORY_LIMIT_EXCEEDED. The BuzzHouse fuzzer builds its list of enable-able fail points from system.fail_points and randomly issues SYSTEM ENABLE FAILPOINT / SYSTEM DISABLE FAILPOINT over its TCP connection. Once it enables this one the situation is unrecoverable: every TCP reconnection attempt fails the same way, and SYSTEM DISABLE FAILPOINT cannot get through because it also needs a TCP connection. The fuzzer exhausts its reconnection attempts and exits with code 241, after which the post-run health check (also TCP) never succeeds, the run never writes its status file, and the job fails with an "Unknown error in fuzzer runner script" even though the server did not crash.

This excludes tcp_handler_fail_connection_setup from the fuzzable fail points, alongside the existing exclusions for fail points that abort/terminate the server. The stateless test 04335_tcp_connection_setup_exception keeps full coverage because it enables/disables the fail point over HTTP, which is unaffected.

Observed on the BuzzHouse (amd_msan) job of #100412 (commit b47ad511):
https://s3.amazonaws.com/clickhouse-test-reports/PRs/100412/b47ad511a9512c707193b3871ea3cbfec4a19114/buzzhouse_amd_msan/fuzz.json

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

🤖 Generated with Claude Code

Version info

  • Merged into: 26.6.1.1050

…oint

`tcp_handler_fail_connection_setup` (added in `TCPHandler::runImpl` by commit
4e30ea9) is a `REGULAR` fail point that makes every new TCP connection setup throw
`MEMORY_LIMIT_EXCEEDED`. The BuzzHouse fuzzer builds its list of enable-able fail points
from `system.fail_points` and randomly issues `SYSTEM ENABLE FAILPOINT` / `SYSTEM DISABLE
FAILPOINT` over its TCP connection. Once it enables this one, the situation is
unrecoverable: every TCP reconnection attempt fails the same way, and `SYSTEM DISABLE
FAILPOINT` cannot get through because it also needs a TCP connection. The fuzzer exhausts
its reconnection attempts and exits with code 241, after which the post-run health check
(also TCP) can never succeed, the run never writes its status file, and the `BuzzHouse`
job fails with an "Unknown error in fuzzer runner script" even though the server did not
crash.

Exclude `tcp_handler_fail_connection_setup` from the fuzzable fail points, alongside the
existing exclusions for fail points that abort/terminate the server. The stateless test
`04335_tcp_connection_setup_exception` keeps full coverage of the fail point because it
enables and disables it over HTTP, which is unaffected.

Observed on the `BuzzHouse (amd_msan)` job of
#100412 (commit b47ad51):
https://s3.amazonaws.com/clickhouse-test-reports/PRs/100412/b47ad511a9512c707193b3871ea3cbfec4a19114/buzzhouse_amd_msan/fuzz.json

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [94ec280]

Summary: ✅


AI Review

Summary

This PR removes tcp_handler_fail_connection_setup from the BuzzHouse failpoint catalog loaded from system.fail_points, preventing the fuzzer from enabling a failpoint that makes future TCP reconnects and TCP-based disable attempts fail. I found no correctness or safety issues in the change.

Missing context / blind spots
  • ⚠️ Full PR CI was still pending at review time; the direct Praktika PR report for 94ec2804a060e05a6460dc31746da1e15f2f25b4 had no completed test results yet.
Final Verdict

Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Jun 16, 2026
@Algunenano
Algunenano requested a review from PedroTadim June 17, 2026 09:51
@alexey-milovidov

Copy link
Copy Markdown
Member Author

Merged the latest master to refresh CI (the branch was behind by 754 commits, branched 06-16, and the only red was Stress test (amd_msan) → "Hung check failed, possible deadlock found", a known master-wide flake hitting 35–50 PRs per day, unrelated to this BuzzHouse-only change).

The re-merge was done via git commit-tree plumbing: git merge-tree reported no conflicts, and the merged tree's net diff vs master is exactly the single FuzzConfig.cpp change of this PR (4 insertions, 1 deletion) — byte-faithful, nothing else picked up. New head: 94ec2804a06.

@alexey-milovidov
alexey-milovidov merged commit 4c8dd3d into master Jun 19, 2026
165 of 166 checks passed
@alexey-milovidov
alexey-milovidov deleted the fix-buzzhouse-tcp-failpoint-persists branch June 19, 2026 17:09
@robot-clickhouse robot-clickhouse added the pr-synced-to-cloud The PR is synced to the cloud repo label Jun 19, 2026
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants