-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
server,session: make sure ResultSet.Close() errors return to the client #48447
Conversation
Hi @tiancaiamao. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #48447 +/- ##
================================================
+ Coverage 71.3849% 72.8246% +1.4397%
================================================
Files 1402 1425 +23
Lines 406866 413375 +6509
================================================
+ Hits 290441 301039 +10598
+ Misses 96487 93368 -3119
+ Partials 19938 18968 -970
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: crazycs520, YangKeao The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
[FORMAT CHECKER NOTIFICATION] Notice: To remove the For example:
📖 For more info, you can check the "Contribute Code" section in the development guide. |
Reuse the unit test of the other PR https://github.com/pingcap/tidb/pull/48412/files#diff-d7a5d1557d888bb61179ecad9eb02d6275358a3954f74a8b5ab600e332843075R2461-R2470 Where the check need to be changed:
Because #48412 return error to the client by the first packet, while this one return error in the last packet. |
In response to a cherrypick label: new pull request created to branch |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
In response to a cherrypick label: new pull request created to branch |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
In response to a cherrypick label: new pull request created to branch |
In response to a cherrypick label: new pull request created to branch |
In response to a cherrypick label: new pull request created to branch |
In response to a cherrypick label: new pull request created to branch |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
What problem does this PR solve?
Issue Number: close #48446, ref #48411
Problem Summary:
What is changed and how it works?
This also fix #48411 in another way, and can prevent more bugs.
Close the result set after all rs.Next(), and before cc.writeEOF()
Avoid the case that error happen and can't be sent to the client after writeEOF.
Check List
Tests
The test code in #48412 should also apply for this one, as the both can fix #48411, so I don't bother writer another duplicated test.
See #48411
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.