-
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
sessionctx: add optimization-time and wait-TS-time into the slow log #17869
Conversation
/run-unit-test |
Codecov Report
@@ Coverage Diff @@
## master #17869 +/- ##
================================================
- Coverage 79.6139% 79.4335% -0.1805%
================================================
Files 525 524 -1
Lines 142946 141585 -1361
================================================
- Hits 113805 112466 -1339
- Misses 19997 20019 +22
+ Partials 9144 9100 -44 |
executor/builder.go
Outdated
txn, err := b.ctx.Txn(true) | ||
b.ctx.GetSessionVars().DurationWaitTS = time.Since(begin) |
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.
Put this into ctx.Txn
will more accuracy? maybe already active the transaction before here.
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.
Updated. PTAL @crazycs520 .
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.
REST LGTM
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
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 |
@qw4990 merge failed. |
/run-common-test |
3 similar comments
/run-common-test |
/run-common-test |
/run-common-test |
/run-all-tests |
/run-integration-copr-test |
cherry pick to release-4.0 in PR #22918 |
What problem does this PR solve?
Issue Number: related to #17557
Problem Summary: add optimization-time and wait-TS-time into the slow log
What is changed and how it works?
One step to resolve #17557.
Add optimization-time and wait-TS-time into the slow log.
Check List
Tests
Release note