Repository navigation
Fix proxy cleanup after client disconnect - #30928
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? |
d845872 to
5e88f3f
Compare
|
Addressed the acceptance-evidence request and the helper-goroutine assertion feedback in commit
Production behavior is unchanged by this follow-up. Existing exact-head CI evidence remains applicable to the production closure; the public disconnect acceptance above supplies the previously missing proof. |
|
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: f7e19e5477eb8ec574577d3058b18fe7545477f8
Assessment: approve
Reviewed all five changed files and the cleanup, migration, cache and CN callers. Closing the captured backend before notification preserves existing ownership and removes the transport’s dependency on RPC completion, without adding normal query-path work. The prior acceptance-evidence and test-assertion concerns are addressed.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1
Validation:
-
Verified frozen HEAD, clean source, complete patch identity and diff whitespace.
-
Reconciled current-head CI jobs 121005465653 and 121005496129: native proxy package race tests and normal coverage completed successfully. Verified commands, terminal results and artifact hashes.
-
Isolation preflight passed. Verified 200 native inputs and 62 retained artifact hashes against the completed build-owner receipt.
-
TestDisconnectCleanupClosesBackendBeforeNotification passed locally under race detection once and then for 100 repetitions using the supplied executor.
-
Audited the tracked author acceptance record: its script hash matches current source, and production/build inputs match the recorded binary revision. Two complete runs covered changed-user and unchanged-root force-closes, both CNs and cache-enabled Proxy operation; reported backend-row disappearance was 0.000740–0.113975 seconds.
-
Command/source/exit receipts and retained logs reconcile successfully in attempt-1/evidence-audit.log and evidence-manifest.json.
Limitations:
-
Public acceptance results are retained author evidence; this reviewer did not rerun the live cluster. The referenced raw macOS build/config/service-log bundle was unavailable locally.
-
The plain-EOF test covers defensive helper behavior; production pipe errors are tagged.
-
No throughput benchmark was required: changes affect teardown, with no added healthy SELECT/DML/DDL work. Reported cleanup timings are not a controlled base/head benchmark.
Merge Queue Status
This pull request spent 4 hours 48 minutes 33 seconds in the queue, with no time running CI. ReasonPull request #30928 has been dequeued Pull request from fork cannot be queued. This pull request comes from a fork, and Mergify needs the author's permission to update its branch.
HintYou should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. Tick the box to put this pull request back in the merge queue (same as
|
What type of PR is this?
Which issue(s) this PR fixes:
#30276
#30278
What this PR does / why we need it:
PR #30299 fixed the authorization contracts for KILL and processlist visibility. When the returned two-CN plus Proxy acceptance script was rerun, those checks passed, but force-closing a client during a running
SELECT SLEEP(60)left the backend session in processlist beyond the ten-second acceptance window.This PR closes the captured backend generation before sending the existing bounded best-effort
DisconnectSessionnotification. It also treats plain EOF/connection-end errors with an in-flight client request as client disconnects, while preserving the explicit server-disconnect boundary. That closes the path missed by PR #30299 without changing its authorization behavior.Validation
make cgo NATIVE_BUILD_JOBS=4andmake build NATIVE_BUILD_JOBS=4.