Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: DDL 卡在 state done 状态很久
[TiDB Usage Environment] Production Environment
[TiDB Version] v6.5.3
[Reproduction Path]
[Encountered Problem: Problem Phenomenon and Impact]
DDL stuck in done state for a long time, blocking other DDL executions
[Resource Configuration] Go to TiDB Dashboard - Cluster Info - Hosts and take a screenshot of this page
[Attachment: Screenshot/Log/Monitoring]
Checking the tidb owner log, it was found that there was an issue synchronizing to other tidb nodes, and other tidb nodes were logging:
[2023/12/29 18:46:59.488 +08:00] [INFO] [session.go:4159] [“old running transaction block DDL”] [“table ID”=12673719] [jobID=12680983] [“connection ID”=5606557124618123315] [“elapsed time”=9h34m42.996504788s]
Tried restarting the owner node, but it didn’t help. Checking the processlist also didn’t reveal any long-running transactions.
I would like to ask how to obtain the corresponding information for the connectionid.
-------2023-12-29 19:19--------
Restarting all tidb nodes can restore.