Repository navigation
Harden ThreadStatus::attachToGroupImpl against partial attachment failures - #106462
Conversation
|
Workflow [PR], commit [af50059] Summary: ✅
AI ReviewSummaryThis PR hardens Final VerdictStatus: ✅ Approve |
4091c1a to
ce16c10
Compare
|
Backport labels have been automatically added based on https://github.com/clickhouse/clickhouse-core-incidents/issues/1682 Labels added:
These labels ensure backport PRs are properly created for each affected release version. The release automation will create backport PRs as needed based on these labels. |
3622132 to
d22c401
Compare
45a39b1 to
ded2658
Compare
cd5bb7e to
d188200
Compare
d188200 to
7d52561
Compare
|
Backport labels have been automatically added based on https://github.com/clickhouse/clickhouse-core-incidents/issues/1682 Labels added:
These labels ensure backport PRs are properly created for each affected release version. The release automation will create backport PRs as needed based on these labels. |
65e2736 to
86f0d55
Compare
mstetsyuk
left a comment
There was a problem hiding this comment.
Can we simplify the tests? Ideally, consolidate them into a single test and avoid covering very specific invariants.
c3bb702 to
f842fa3
Compare
7165005 to
e1e8c86
Compare
ThreadStatus::attachToGroupImpl against partial attachment failures
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered by tests: 70/71 (98.59%) | Lost baseline coverage: none · Uncovered code |
|
I hope, it's in a decent state now. |
|
Hi @Felixoid @mstetsyuk — a couple of suggestions to make this PR easier for reviewers and the changelog reader. Description (currently
Ignore this if the current title/body is intentional. |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fix a case where a worker thread could stay attached to a stale thread group after
CurrentThread::attachToGroupfailed part way through, causing later tasks on the same thread to fail withThread is already attached to a group.