TiDB failed to delete database table, many running jobs remain in canceling state after cancellation, unable to proceed. Delete command not executed, table has 0 rows

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: TiDB 删除数据库表, 数据库 失败, 很多运行的jobs, 取消之后变成都在canceling的状态,无法该处 .删除命令没有执行 表是0行数据

| username: 济南小老虎

[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]

| username: 大飞哥online | Original post link

It looks like we need to resort to the reboot method.

| username: ajin0514 | Original post link

Have you tried restarting?

| username: 济南小老虎 | Original post link

Restarted, didn’t work.

| username: 济南小老虎 | Original post link

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.

| username: zhanggame1 | Original post link

Restart all TiDB servers.

| username: Jellybean | Original post link

There are some issues with the DDL queue in this version, retrying the tidb-server cluster can resolve them.

| username: TiDBer_vfJBUcxl | Original post link

Try restarting the TiDB server cluster.

| username: xfworld | Original post link

Try upgrading to 6.5.5 and see if it works.

| username: zhanggame1 | Original post link

Cannot upgrade while executing DDL.

| username: 大飞哥online | Original post link

Restarting the cluster still doesn’t work?

| username: zhanggame1 | Original post link

After restarting, it still didn’t succeed? Check what it’s stuck on deleting.

| username: 济南小老虎 | Original post link

Unsuccessful

| username: 济南小老虎 | Original post link

Restarting didn’t work.

| username: 济南小老虎 | Original post link

Is this a bug?

| username: 济南小老虎 | Original post link

I’ve restarted several times, but it doesn’t work.

| username: xfworld | Original post link

Yes, there is a bug with DDL, it can’t be bypassed.

| username: zhanggame1 | Original post link

How did you restart it? Have you tried restarting it like this?
tiup cluster restart -R tidb

| username: 像风一样的男子 | Original post link

Stop all TiDB instances and then restart them, there is a bug.

| username: 济南小老虎 | Original post link

Restarted the entire server, but it didn’t work.