Repository navigation
fix(disttae): release subscription state locks before diagnostics - #32022
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
mo-bot review · Commit: Review linked issue or PR description changed before publication; a fresh contextual review is queued. |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: d24c82f9a8b34cddbb949a3529c52a842c3264bc
Assessment: approve
Complete review found no actionable defects. The updated validation statement is supported by retained results; diagnostic lock release preserves state, send, and cleanup semantics.
Model: gpt-6-astra / xhigh
Session: 01a1869d-820c-7212-9788-aecfb86a4141 · slot 0 · generation 2
Validation:
-
Verified identical frozen source, patch, native inputs, and matching command/source/exit receipts before reusing checks.
-
Reused passing normal/race results: 21 focused scenarios and 629 roots plus 829 subcases per full package run, with no skips.
-
Reused 100 passing race repetitions for each new test, plus vet, formatting, and isolation checks.
-
Current audit passed. Review plan, all three discussion dispositions, receipts, and logs are retained in the assigned diagnostic directory.
Limitations:
-
Product tests were reused from verified same-head execution, not rerun.
-
Frozen CI build, UT, coverage, and SCA remain pending; no end-to-end latency improvement is claimed.
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #32021
What this PR does / why we need it:
A slow subscription diagnostic sink holds the cross-table subscription state lock and stalls unrelated subscribed-table reads. Move the state owner's response, explicit-unsubscribe and GC-rollback diagnostics after lock release, carrying immutable scalar fields. Remove the common send-success diagnostic, nested cleanup Debug log and mutable subscription-map dump. State transitions, transport sends and cleanup retain their original synchronization and failure semantics.
The removed send-success event is an intentional observability tradeoff: final subscription success remains logged, but it is not a one-to-one replacement for every successful send. Retained transition logs describe the committed event and may appear after a later concurrent transition.
Validation on Go 1.27.1 / macOS arm64:
This closes the demonstrated direct diagnostic-lock dependency. Transport-internal logging and I/O retain their existing synchronization; scheduler delays and PR #31944's separate end-to-end P95 acceptance remain unresolved. No production P95 improvement is claimed. CI for this head is pending.