-
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
*: improve log about stale-read query #52494
Conversation
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. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #52494 +/- ##
================================================
+ Coverage 72.2059% 74.3781% +2.1722%
================================================
Files 1469 1470 +1
Lines 427109 432124 +5015
================================================
+ Hits 308398 321406 +13008
+ Misses 99536 90748 -8788
- Partials 19175 19970 +795
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Signed-off-by: crazycs520 <[email protected]>
Signed-off-by: crazycs520 <[email protected]>
[LGTM Timeline notifier]Timeline:
|
Signed-off-by: crazycs520 <[email protected]>
Signed-off-by: crazycs520 <[email protected]>
/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. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: easonn7, MyonKeminta, qw4990, zyguan 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 |
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 #52492 #45545
Problem Summary: improve log about stale-read query
What changed and how does it work?
Log
Before this PR,
timestamp
field in log is 0 when executing stale-read query.This PR,
timestamp
field isstale-read ts
.Slow log
Before This PR
The slow log of stale-read query is the following,
Txn_start_ts
is 0, which is unexpected.This PR
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.