Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: KILL tidb +id不生效
[TiDB Usage Environment] Production Environment
[TiDB Version] v5.1.4
[Encountered Problem] kill tidb +id not effective
[Problem Phenomenon and Impact]
High load on tikv nodes
Phenomenon as follows:
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