Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: 请问大佬怎么在tidb里面查找锁?我这个sql被阻塞了。怎么查找阻塞这个事务的sql
[TiDB Usage Environment] Production Environment / Testing / PoC
[TiDB Version]
[Encountered Issues]
[Reproduction Path] What operations were performed to encounter the issue
[Issue Phenomenon and Impact]
UPDATE
ex_order
SET
STATUS = 5,
mtime = ‘2022-10-19 23:20:16.736’
WHERE
(
id IN (
1582753498020446208
)
AND STATUS IN (
3,
1,
0
)
);
[Attachments]
Please provide the version information of each component, such as cdc/tikv, which can be obtained by executing cdc version/tikv-server --version.