LATEST DETECTED DEADLOCK ------------------------ 2021-03-22 16:02:01 0x7f1cfc289700 *** (1) TRANSACTION: TRANSACTION 153411874, ACTIVE 0 sec starting index read mysql tables in use 1, locked 1 LOCK WAIT 8 lock struct(s), heap size 1136, 23 row lock(s), undo log entries 22 MySQL thread id 8203444, OS thread handle 139762013996800, query id 766107488 updating update test SET status = 4, version = version+1, gmt_modified = '2021-03-22 16:02:01' where id = 1 and version=14 *** (1) WAITING FOR THIS LOCK TO BE GRANTED: RECORD LOCKS space id 639 page no 2931 n bits 128 index PRIMARY of table `test` trx id 153411874 lock_mode X locks rec but not gap waiting Record lock, heap no 40 PHYSICAL RECORD: n_fields 45; compact format; info bits 0
*** (2) TRANSACTION: TRANSACTION 153411876, ACTIVE 0 sec starting index read mysql tables in use 1, locked 1 8 lock struct(s), heap size 1136, 7 row lock(s), undo log entries 6 MySQL thread id 8204162, OS thread handle 139762466330368, query id 766107489 updating update test SET approval_status = 5, biz_date = '2021-02-23 00:00:00', modified_id = 123, modified_name = 'xxx', contact_company_id = 456, contact_company_n *** (2) HOLDS THE LOCK(S): RECORD LOCKS space id 639 page no 2931 n bits 128 index PRIMARY of table `test` trx id 153411876 lock_mode X locks rec but not gap Record lock, heap no 40 PHYSICAL RECORD: n_fields 45; compact format; info bits 0
*** (2) WAITING FOR THIS LOCK TO BE GRANTED: RECORD LOCKS space id 639 page no 2931 n bits 128 index PRIMARY of table `test` trx id 153411876 lock_mode X locks rec but not gap waiting Record lock, heap no 28 PHYSICAL RECORD: n_fields 45; compact format; info bits 0