You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
What did you do?
MySQL [test]> desc t;
+-------+---------+------+------+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------+---------+------+------+---------+-------+
| id | int(11) | NO | PRI | NULL | |
| v | int(11) | YES | | NULL | |
+-------+---------+------+------+---------+-------+
2 rows in set (0.000 sec)
Client 1
Client 2
BEGIN
SELECT * FROM t WHERE id = 1 FOR UPDATE
SELECT * FROM t WHERE id = 2 FOR UPDATE
wait 20s
BEGIN
SELECT * FROM t WHERE id = 2 FOR UPDATE NOWAIT
What did you expect to see?
ERROR 3572 (HY000): Statement aborted because lock(s) could not be acquired immediately and NOWAIT is set.
What did you see instead?
Client 2 blocks. TiDB and TiKV CPU usage increase greatly.
What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?
Bug Report
Please answer these questions before submitting your issue. Thanks!
Client 2 blocks. TiDB and TiKV CPU usage increase greatly.
tidb-server -V
or runselect tidb_version();
on TiDB)?The text was updated successfully, but these errors were encountered: