The document shows two transactions occurring in the database. Transaction 1 is waiting for a table lock on the user_action_history table. Transaction 2 currently holds the lock on that table but is waiting on a record lock for the user table before it can complete. This is causing Transaction 1 to remain waiting until Transaction 2 finishes.
The document shows two transactions occurring in the database. Transaction 1 is waiting for a table lock on the user_action_history table. Transaction 2 currently holds the lock on that table but is waiting on a record lock for the user table before it can complete. This is causing Transaction 1 to remain waiting until Transaction 2 finishes.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online from Scribd
The document shows two transactions occurring in the database. Transaction 1 is waiting for a table lock on the user_action_history table. Transaction 2 currently holds the lock on that table but is waiting on a record lock for the user table before it can complete. This is causing Transaction 1 to remain waiting until Transaction 2 finishes.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online from Scribd
TRANSACTION 0 261979990, ACTIVE 79 sec, process no 2444, OS thread id 1183439168 setting auto-inc lock mysql tables in use 1, locked 1 LOCK WAIT 3 lock struct(s), heap size 368, undo log entries 1 MySQL thread id 2316919, query id 30162385 10.1.26.4 DB10873 update insert into user_action_history (action_by, action_for, action_name, action_take n_at, description, ref_id1, ref_id1_name, ref_id2, ref_id2_name) values ('KDarli ng', 'KDarling', 'LOG IN FAILED', '2011-02-06 15:13:17', 'KDarling tried logging in with an incorrect password at Sun Feb 06 15:13:17 PST 2011', 'KDarling', 'Us er Id', 'KDarling', 'User Id') *** (1) WAITING FOR THIS LOCK TO BE GRANTED: TABLE LOCK table `mob_client_db10873/user_action_history` trx id 0 261979990 loc k mode AUTO-INC waiting *** (2) TRANSACTION: TRANSACTION 0 261979812, ACTIVE 115 sec, process no 2444, OS thread id 118982892 8 inserting, thread declared inside InnoDB 500 mysql tables in use 1, locked 1 4 lock struct(s), heap size 1216, undo log entries 1 MySQL thread id 2316717, query id 30160533 10.1.26.4 DB10873 update insert into user_action_history (action_by, action_for, action_name, action_take n_at, description, ref_id1, ref_id1_name, ref_id2, ref_id2_name) values ('KDarli ng', 'KDarling', 'LOG_IN', '2011-02-06 15:11:22', 'KDarling logged in at Sun Feb 06 15:11:22 PST 2011', 'KDarling', 'User Id', 'KDarling', 'User Id') *** (2) HOLDS THE LOCK(S): TABLE LOCK table `mob_client_db10873/user_action_history` trx id 0 261979812 loc k mode AUTO-INC *** (2) WAITING FOR THIS LOCK TO BE GRANTED: RECORD LOCKS space id 0 page no 423446 n bits 144 index `PRIMARY` of table `mob_ client_db10873/user` trx id 0 261979812 lock mode S locks rec but not gap waitin g Record lock, heap no 21 PHYSICAL RECORD: n_fields 20; compact format; info bits 0 0: len 8; hex 4b4461726c696e67; asc KDarling;; 1: len 6; hex 00000f9d7f56; asc V;; 2: len 7; hex 00000c986e11de; asc n ;; 3: len 22; hex 6b6461726c69 6e6731406d61696e652e72722e636f6d; asc kdarling1@maine.rr.com;; 4: SQL NULL; 5: S QL NULL; 6: len 16; hex 705780c523a03aa0e6268df922a9e5d1; asc pW # : & " ;; 7: len 8; hex 7fffffffffffffff; asc ;; 8: len 4; hex 4d4b8dba; asc MK ;; 9: len 8; hex 80000000001b7740; asc w@;; 10: len 8; hex 454e445f5553455 2; asc END_USER;; 11: len 5; hex 4b6172656e; asc Karen;; 12: len 7; hex 4461726c 696e67; asc Darling;; 13: len 2; hex 8001; asc ;; 14: len 20; hex 3733304f4967 6d74457273325475504d39366456; asc 730OIgmtErs2TuPM96dV;; 15: len 4; hex 4cd4d8aa ; asc L ;; 16: SQL NULL; 17: SQL NULL; 18: len 2; hex 8001; asc ;; 19: len 2 ; hex 8006; asc ;; *** WE ROLL BACK TRANSACTION (2)