-
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
executor: add lock keys duration metric #14194
Conversation
@cfzjywxk If we remove the check, optimistic transactions are recorded too, we will get too many near-zero values. |
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.
do we need update the gafana?
We need to store PessimisticLockWaited in StmtContext |
ece21ce
to
bba781f
Compare
Yes it's needed |
LGTM |
/run-unit-test |
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
/merge |
/run-all-tests |
What problem does this PR solve?
Cherry-pick #14189 to 3.0
maybe we just record the lock keys duration #14189, record the waited flag and duration in stmtctx(will be used in slow log)
What is changed and how it works?
Check List
Tests
Code changes
Side effects
Related changes
tidb-ansible
repositoryRelease note