-
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
executer: add Cop_time
in slow log
#16873
Conversation
Signed-off-by: crazycs520 <[email protected]>
Signed-off-by: crazycs520 <[email protected]>
Signed-off-by: crazycs520 <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #16873 +/- ##
================================================
- Coverage 80.4616% 80.3491% -0.1125%
================================================
Files 507 507
Lines 137913 137409 -504
================================================
- Hits 110967 110407 -560
- Misses 18295 18338 +43
- Partials 8651 8664 +13 |
/rebuild |
I think that's a great approaching, would |
@SunRunAway Ye, maybe in next PR add |
@crazycs520 Should we cherry pick this PR to 4.0? |
@qw4990 Yes, I want to cherry-pick to 4.0. |
Signed-off-by: crazycs520 <[email protected]>
…into refine-slow-log
Signed-off-by: crazycs520 <[email protected]>
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
@crazycs520 we should add documentation update in |
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
/run-all-tests |
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.
Is it compatible with the older versions?
e.g. Older version reads slow log in newer version.
Or, newer version reads slow log in older version.
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.
Did you discuss the name with PM? I think the name is confusing, I don't know whether it's time consumed in TiDB or TiKV or both by the name. I can only read the document to figure it out.
@crazycs520 merge failed. |
@djshow832, It's ok, new version can still read the old version tidb slow log, and old version can read the new tidb slow log, but can't read the |
/run-integration-copr-test |
/run-unit-test |
cherry pick to release-4.0 in PR #16904 |
@crazycs520 Please update the documentation. |
What problem does this PR solve?
Before this PR, TiDB Slow log only record
Process_time
, but it is the total process time of cop task spend on TiKV, we still don't know the relatedCop_time
spend in tidb, as below:What is changed and how it works?
Add
Cop_time
in slow_query and slow log. TheCop_time
contain the time duration as below:Related changes
Check List
Tests
Side effects
Release note