-
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
Implement Lock View (Sprint 3) #24199
Comments
/assign "Implement DATA_LOCK_WAIT table that shows lock waiting information." |
Ok, I'm the bot :) |
@longfangsong Maybe you need to implement the get_lock_wait_info api first (Implement TiKV APIs to support exposing lock waiting information to TiDB) |
Yes, I think these two should be implemented together. |
Ok, I'll assign you both |
I played around with this feature today, and it looks really useful! I have a couple of questions/suggestions:
|
@morgo Thanks for your feedback!
Though there are many useful things we didn't plan due to the time limit, we still have chance to continue improving it in the next sprint, but it depends on our PMs' decisions. For now, I think you can still expect that it will be improved in the next version. |
Known issue +1 #25029 |
Sprint 3 have ended. This issue will be closed and remaining tasks will be done in the future. |
Development Task
We are going to implement the feature Lock View in Sprint3, which will be helpful and much improves the experience when diagnosing transaction lock contention, blocking and deadlocking issue.
The development tasks will be done by me and @longfangsong .
Design doc: #24375
Major development tasks:
TIDB_TRX
table which provides information of ongoing transactions.ALL_SQL_DIGESTS
field @MyonKeminta infoschema, executor, txn: implement DATA_LOCK_WAITS table #24750DATA_LOCK_WAIT
table that shows lock waiting information. @longfangsong infoschema, executor, txn: implement DATA_LOCK_WAITS table #24750DEADLOCK
table that shows recent several deadlock events.CLUSTER_TIDB_TRX
on deadlock for more rich information for the related transactionsDocumentation
Optional improvements:
statements_summary
, so that it can be used to find statements that's being blocked and can't finish.Misc
The text was updated successfully, but these errors were encountered: