Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: TiDB 删除数据库表, 数据库 失败, 很多运行的jobs, 取消之后变成都在canceling的状态,无法该处 .删除命令没有执行 表是0行数据
[TiDB Usage Environment] Production Environment / Testing / PoC
[TiDB Version]
[Reproduction Path] What operations were performed when the issue occurred
[Encountered Issue: Issue Phenomenon and Impact]
[Resource Configuration] Go to TiDB Dashboard - Cluster Info - Hosts and take a screenshot of this page
[Attachments: Screenshots/Logs/Monitoring]
It looks like we need to resort to the reboot method.
Have you tried restarting?
Restarted, but it didn’t work.
Start instance 192.168.254.72:9093 success
Starting component node_exporter
Starting instance 192.168.254.72
Start 192.168.254.72 success
Starting component blackbox_exporter
Starting instance 192.168.254.72
Start 192.168.254.72 success
Restarted cluster `erptidb` successfully
[root@tidb01 ~]# /deploy/mysql
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MySQL connection id is 621
Server version: 5.7.25-TiDB-v6.5.3 TiDB Server (Apache License 2.0) Community Edition, MySQL 5.7 compatible
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MySQL [(none)]> drop database xxxx
-> ;
It’s been more than an hour, still no response.
Restart all TiDB servers.
There are some issues with the DDL queue in this version, retrying the tidb-server cluster can resolve them.
Try restarting the TiDB server cluster.
Try upgrading to 6.5.5 and see if it works.
Cannot upgrade while executing DDL.
Restarting the cluster still doesn’t work?
After restarting, it still didn’t succeed? Check what it’s stuck on deleting.
I’ve restarted several times, but it doesn’t work.
Yes, there is a bug with DDL, it can’t be bypassed.
How did you restart it? Have you tried restarting it like this?
tiup cluster restart -R tidb
Stop all TiDB instances and then restart them, there is a bug.
Restarted the entire server, but it didn’t work.