Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: 集群中所有节点的ddl owner 的状态都为0
In TiDB v6.1.0, the system encountered an issue where it was unable to create tables. The SHOW DDL JOB
command revealed that the status was “queue” and the table name was empty. After canceling the job, the status changed to “cancelling,” but it still could not be completed. All DDL operations were unable to proceed. Using the SELECT tidb_is_ddl_owner()
statement showed that all TiDB instances returned 0. The issue was resolved by restarting all TiDB nodes using tiup restart
.
Normal create table and truncate table operations don’t have any special procedures. The frequency is slightly higher, with a few DDLs per minute.
TiDB isn’t that fragile, is it? It crashes after a few DDL operations in one minute?
I don’t know why the DDL owner hasn’t been elected. It should be a small bug.
Can you provide the logs and monitoring data from that time?
【TiDB Usage Environment】Production Environment / Testing / PoC
【TiDB Version】
【Reproduction Path】What operations were performed when the issue occurred
【Encountered Issue: Issue Symptoms and Impact】
【Resource Configuration】
【Attachments: Screenshots / Logs / Monitoring】
A more detailed description would help in making a better judgment~
Let’s see the result of ADMIN SHOW DDL JOBS;
.