Repository navigation
fix(frontend): silence missing binary statement closes - #31413
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 completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: c504f256b0f6b5a8a72ab02ec2f7f5b1f585ece1
Assessment: approve
The change restores response-free binary COM_STMT_CLOSE handling for missing handles and returned deallocation errors, while preserving existing cleanup, ROW_COUNT, text DEALLOCATE and malformed-packet behavior. No actionable findings remain.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1
Validation:
-
Reviewed the complete three-file delta, response and cleanup owners, full PR discussion and both linked issues. Saved discussion-assessment.json; no substantive prior findings or rebuttals remain.
-
Reviewed missing-handle and injected-error tests, plus the frontend packet-loop regression covering unknown, known and repeated closes followed by PING. Reused frozen exact-head successful UT, coverage, build and BVT statuses; checked frontend test selection in source.
-
Local static audit passed. Receipt checks/1793161672149965549-6.json, input-audit.log and validation-audit.json agree on command, clean source and exit 0.
Limitations:
-
No local Go tests were rerun. Detailed CI logs and author local-test receipts were not supplied; individual runtime results beyond the frozen CI statuses are not claimed.
-
The wire regression exercises the real frontend over net.Pipe with mocked storage and transaction dependencies, rather than a deployed cluster or Python driver.
🚫 Left the queue1 h 11 min in the queue, with no time running CI. So far
Reason Pull request #31413 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.
Hint You 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. Merge conditions: 2 of 3 metThis pull request
The batch, tested in place
Tick the box to put this pull request back in the merge queue (same as
Times in UTC · dashboard · how the merge queue works |
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #27338
What this PR does / why we need it:
The MySQL protocol sends no response to binary
COM_STMT_CLOSE, so clients do not read one. MatrixOne sent an ERR packet when the statement ID was already absent, leaving that packet to be consumed by the next command and desynchronizing the connection.For a valid close packet, silently accept an absent handle and suppress a response if internal deallocation fails. Keep the existing cursor and parameter cleanup for known handles, preserve
ROW_COUNT()and diagnostics, and leave text SQLDEALLOCATE PREPAREbehavior unchanged. Truncated close packets retain the existing protocol-error behavior tracked by #25744.Validation: focused frontend unit and real MySQL wire tests for unknown close, known close, repeated close, and the following PING; full
pkg/frontendtests. CI pending.