【 TiDB 使用环境】生产环境
【 TiDB 版本】 v5.1.4
【遇到的问题】 kill tidb +id不生效
【问题现象及影响】
tikv节点负载高
现象如下:
mysql> SELECT id,COMMAND,TIME,STATE,TxnStart FROM INFORMATION_SCHEMA.CLUSTER_PROCESSLIST where TIME>1000 and COMMAND!=‘Sleep’\G;
*************************** 1. row ***************************
id: 45516433
COMMAND: Query
TIME: 145610
STATE: autocommit
TxnStart: 10-10 17:55:31.808(436573498719076387)
*************************** 2. row ***************************
id: 45517293
COMMAND: Query
TIME: 145492
STATE: autocommit
TxnStart: 10-10 17:57:30.007(436573529704235183)
2 rows in set (0.01 sec)
ERROR:
No query specified
mysql> kill tidb 45516433;kill tidb 45517293;
Query OK, 0 rows affected (0.00 sec)
Query OK, 0 rows affected (0.00 sec)
mysql> SELECT id,COMMAND,TIME,STATE,TxnStart FROM INFORMATION_SCHEMA.CLUSTER_PROCESSLIST where TIME>1000 and COMMAND!=‘Sleep’\G;
*************************** 1. row ***************************
id: 45516433
COMMAND: Query
TIME: 145668
STATE: autocommit
TxnStart: 10-10 17:55:31.808(436573498719076387)
*************************** 2. row ***************************
id: 45517293
COMMAND: Query
TIME: 145550
STATE: autocommit
TxnStart: 10-10 17:57:30.007(436573529704235183)
2 rows in set (0.03 sec)
ERROR:
No query specified