server icon indicating copy to clipboard operation
server copied to clipboard

MDEV-33071 : MDL deadlock loop information

Open northhurricane opened this issue 1 year ago • 1 comments
trafficstars

  • [x] The Jira issue number for this PR is: MDEV-33071

Description

This feature provide MDL deadlock loop printing. Store the lock infomation when MDL deadlock is detected and print these infomation to logfile when user turn on the print switch. This can help tracing back the connection by thread id to check how the deadlock happened.

How can this PR be tested?

Provide test case mysql-test/main/print_mdl_deadlock.test to verify this feature

Basing the PR against the correct MariaDB version

  • [ ] This is a new feature and the PR is based against the latest MariaDB development branch.

PR quality check

  • [x] For any trivial modifications to the PR, I am ok with the reviewer making the changes themselves.

northhurricane avatar Dec 27 '23 03:12 northhurricane

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Dec 27 '23 03:12 CLAassistant