NI
Size: a a a
NI
NI
V
"SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction"
------------------------
LATEST DETECTED DEADLOCK
------------------------
2020-05-14 13:57:29 0x7fb0136f6700
*** (1) TRANSACTION:
TRANSACTION 9067056094, ACTIVE 0 sec setting auto-inc lock
mysql tables in use 2, locked 2
LOCK WAIT 6 lock struct(s), heap size 1136, 3 row lock(s), undo log entries 1
...
REPLACE INTO `DB`.`_table_new` ...
*** (1) WAITING FOR THIS LOCK TO BE GRANTED:
TABLE LOCK table `db`.`_table_new` trx id 9067056094 lock mode AUTO-INC waiting
*** (2) TRANSACTION:
TRANSACTION 9067056090, ACTIVE 0 sec inserting
mysql tables in use 2, locked 2
18 lock struct(s), heap size 1136, 456 row lock(s), undo log entries 443
INSERT LOW_PRIORITY IGNORE INTO `db`.`_table_new` ....
*** (2) HOLDS THE LOCK(S):
TABLE LOCK table `db`.`_table_new` trx id 9067056090 lock mode AUTO-INC
*** (2) WAITING FOR THIS LOCK TO BE GRANTED:
RECORD LOCKS space id 2901 page no 6596 n bits 584 index k_transaction_id of table `db`.`_table_new` trx id 9067056090 lock_mode X locks gap before rec insert intention waiting
*** WE ROLL BACK TRANSACTION (1)
NI
V
NI
V