innodb_lock_wait_timeout doesn't work in some case #56688
Labels
affects-5.4
This bug affects the 5.4.x(LTS) versions.
affects-6.1
This bug affects the 6.1.x(LTS) versions.
affects-6.5
This bug affects the 6.5.x(LTS) versions.
affects-7.1
This bug affects the 7.1.x(LTS) versions.
affects-7.5
This bug affects the 7.5.x(LTS) versions.
affects-8.1
This bug affects the 8.1.x(LTS) versions.
affects-8.4
report/customer
Customers have encountered this bug.
severity/major
sig/transaction
SIG:Transaction
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
The following slow SQL execution time is
147s
, and theExec_retry_time
of this SQL is145s
, which is much larger than theinnodb_lock_wait_timeout
value50s
. It's strange why it doesn't return anLock wait timeout exceeded
error earlier.1. Minimal reproduce step (Required)
You can use loadgen tool to implement this:
2. What did you expect to see? (Required)
The slowest execution time of SQL
update t use index (idx) set k=k+1 where id > 0;
should be around 50s.3. What did you see instead (Required)
The slowest execution time of SQL
update t use index (idx) set k=k+1 where id > 0;
is much larger than theinnodb_lock_wait_timeout
value50s
. It's strange why it doesn't return anLock wait timeout exceeded
error earlier.4. What is your TiDB version? (Required)
nightly: 3df0f2e
The text was updated successfully, but these errors were encountered: