-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
executor: fix issue that some query execution stats was omitted when execution was interrupted #51787
Conversation
…was interrupted Signed-off-by: crazycs520 <[email protected]>
Signed-off-by: crazycs520 <[email protected]>
Hi @crazycs520. 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. |
Signed-off-by: crazycs520 <[email protected]>
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #51787 +/- ##
=================================================
- Coverage 70.7160% 54.9169% -15.7991%
=================================================
Files 1476 1583 +107
Lines 437502 614366 +176864
=================================================
+ Hits 309384 337391 +28007
- Misses 108721 254685 +145964
- Partials 19397 22290 +2893
Flags with carried forward coverage won't be shown. Click here to find out more.
|
/test check-dev2 |
@crazycs520: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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. |
[LGTM Timeline notifier]Timeline:
|
/test fast_test_tiprow |
@crazycs520: The specified target(s) for
The following commands are available to trigger optional jobs:
Use
In response to this:
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. |
@crazycs520: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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. |
/retest-required |
@crazycs520: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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. |
/ok-to-test |
/retest |
@Benjamin2037 PTAL |
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: Benjamin2037, lcwangchao, you06 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 |
/merge |
@crazycs520: We have migrated to builtin Please use
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 ti-community-infra/tichi repository. |
I think this PR introduced a panic:
|
…execution was interrupted (pingcap#51787) close pingcap#51660 Signed-off-by: crazycs520 <[email protected]>
* sessionctx: add sysvar to control exp feats of replica selector Signed-off-by: zyguan <[email protected]> * *: add rpc error stats and refine log (#52810) Signed-off-by: crazycs520 <[email protected]> * store: refine coprocessor error log (#52729) Signed-off-by: crazycs520 <[email protected]> * *: improve log about stale-read query (#52494) Signed-off-by: crazycs520 <[email protected]> * *: refine tikv/client-go log to print context information(such as conn id) as much as possible (#45559) Signed-off-by: crazycs520 <[email protected]> * add leader peer id log Signed-off-by: crazycs520 <[email protected]> * update log Signed-off-by: crazycs520 <[email protected]> * executor: fix issue that some query execution stats was omitted when execution was interrupted (#51787) close #51660 Signed-off-by: crazycs520 <[email protected]> * update go.mod Signed-off-by: crazycs520 <[email protected]> --------- Signed-off-by: zyguan <[email protected]> Signed-off-by: crazycs520 <[email protected]> Co-authored-by: zyguan <[email protected]>
…#53335) (pingcap#96) * *: add rpc error stats and refine log for diagnose (pingcap#53335) * sessionctx: add sysvar to control exp feats of replica selector Signed-off-by: zyguan <[email protected]> * *: add rpc error stats and refine log (pingcap#52810) Signed-off-by: crazycs520 <[email protected]> * store: refine coprocessor error log (pingcap#52729) Signed-off-by: crazycs520 <[email protected]> * *: improve log about stale-read query (pingcap#52494) Signed-off-by: crazycs520 <[email protected]> * *: refine tikv/client-go log to print context information(such as conn id) as much as possible (pingcap#45559) Signed-off-by: crazycs520 <[email protected]> * add leader peer id log Signed-off-by: crazycs520 <[email protected]> * update log Signed-off-by: crazycs520 <[email protected]> * executor: fix issue that some query execution stats was omitted when execution was interrupted (pingcap#51787) close pingcap#51660 Signed-off-by: crazycs520 <[email protected]> * update go.mod Signed-off-by: crazycs520 <[email protected]> --------- Signed-off-by: zyguan <[email protected]> Signed-off-by: crazycs520 <[email protected]> Co-authored-by: zyguan <[email protected]> * Update go.sum * Update go.mod --------- Signed-off-by: zyguan <[email protected]> Signed-off-by: crazycs520 <[email protected]> Co-authored-by: crazycs <[email protected]> Co-authored-by: zyguan <[email protected]>
What problem does this PR solve?
Issue Number: close #51660
Problem Summary: fix issue that some query execution stats was omitted when execution was interrupted.
What changed and how does it work?
This PR:
Execute query with max_execution_time, and make the query execution was interrupted, cause by maximum statement execution time exceeded. Then the slow query info still have executor stats.
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.