Skip to content

BuzzHouse: do not enable the thread-group fault injections - #113002

Merged
alexey-milovidov merged 1 commit into
masterfrom
buzzhouse-exclude-thread-group-failpoints
Aug 2, 2026
Merged

alexey-milovidov merged 1 commit into
masterfrom
buzzhouse-exclude-thread-group-failpoints

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Aug 2, 2026 •

Copy link
Copy Markdown
Member

BuzzHouse enables a random failpoint from system.fail_points. Two of them — attach_to_group_failure and thread_group_switcher_post_attach_failure — deliberately break the invariant that a query thread is attached to a thread group. ThreadGroupSwitcher is noexcept and only logs the injected failure, so the thread carries on with no group and the next executeQuery that runs on it fails with the No thread group attached to the thread logical error:

2026.08.01 16:02:41 [ 138 ] executeQuery: SYSTEM ENABLE FAILPOINT attach_to_group_failure
2026.08.01 16:02:42 [ 138 ] DB::ThreadGroupSwitcher::ThreadGroupSwitcher(...): Code: 710. DB::Exception: Injected failure in attachToGroupImpl. (FAULT_INJECTED)
2026.08.01 16:02:42 [ 138 ] <Fatal> : Logical error: 'No thread group attached to the thread 138'.

Seen in https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=112766&sha=25a457c530e81c122d764503aa913d2d04eedbb1&name_0=PR&name_1=BuzzHouse%20%28amd_msan%29 and, on the same day, in BuzzHouse (amd_debug) on an unrelated pull request.

Both failpoints exist for the in-process unit test gtest_thread_group_switcher, which enables them around a single controlled switch; they are not meaningful to inject from SQL. Exclude them from the list the fuzzer picks from, like the other failpoints that legitimately take the server down.

Related: #112766
Related: #110514

Changelog category (leave one):

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

Version info

  • Merged into: 26.8.1.651 (included in 26.8 and later)

BuzzHouse enables a random failpoint from \`system.fail_points\`. Two of them -
\`attach_to_group_failure\` and \`thread_group_switcher_post_attach_failure\` - deliberately break the
invariant that a query thread is attached to a thread group. \`ThreadGroupSwitcher\` is \`noexcept\` and
only logs the injected failure, so the thread carries on with no group and the next \`executeQuery\`
that runs on it fails with the \`No thread group attached to the thread\` logical error, e.g.
https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=112766&sha=25a457c530e81c122d764503aa913d2d04eedbb1&name_0=PR&name_1=BuzzHouse%20%28amd_msan%29
(#112766). The same failure hit
#110514 in \`BuzzHouse (amd_debug)\` on the same day.

Both failpoints exist for the in-process unit test \`gtest_thread_group_switcher\`, which enables them
around a single controlled switch; they are not meaningful to inject from SQL. Exclude them from the
list the fuzzer picks from, like the other failpoints that legitimately take the server down.
@clickhouse-gh

clickhouse-gh Bot commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [6e8e70e]

Summary: ✅


AI Review

Summary

This PR excludes attach_to_group_failure and thread_group_switcher_post_attach_failure from the BuzzHouse failpoint pool loaded from system.fail_points. That matches the current contract: all failpoint-related SYSTEM statements generated by BuzzHouse draw from fc.failpoints, and these are the only two registered failpoints in the thread-group attach/switch path that intentionally leave a worker thread without a query thread group when used outside the dedicated unit test. I did not find a correctness, metadata, or evidence gap specific to this patch.

Final Verdict

✅ No blocking issues found.

@alexey-milovidov alexey-milovidov left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok.

@alexey-milovidov alexey-milovidov self-assigned this Aug 2, 2026
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Aug 2, 2026
Merged via the queue into master with commit 022dc39 Aug 2, 2026
179 checks passed
@alexey-milovidov
alexey-milovidov deleted the buzzhouse-exclude-thread-group-failpoints branch August 2, 2026 23:38
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Aug 3, 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.

2 participants