Advertisement
Guest User

Untitled

a guest
Aug 29th, 2015
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. ------------------------
  2. LATEST DETECTED DEADLOCK
  3. ------------------------
  4. 150511 18:42:43
  5. *** (1) TRANSACTION:
  6. TRANSACTION B8972CA4, ACTIVE 0 sec inserting
  7. mysql tables in use 1, locked 1
  8. LOCK WAIT 3 lock struct(s), heap size 1248, 2 row lock(s), undo log entries 1
  9. MySQL thread id 55103359, OS thread handle 0x7f6babefb700, query id 18803072369 db.example.com 127.0.0.1 application update
  10. INSERT INTO users ( created_at, external_record_type, external_id, email ) VALUES ( '2015-05-11 18:42:43', 'person', '212999172', 'user1@example.com' )
  11. *** (1) WAITING FOR THIS LOCK TO BE GRANTED:
  12. RECORD LOCKS space id 18 page no 1103450 n bits 320 index `index_users_on_external_record_type_and_external_id` of table `users`.`users` trx id B8972CA4 lock_mode X locks gap before rec insert intention waiting
  13. *** (2) TRANSACTION:
  14. TRANSACTION B8972CA5, ACTIVE 0 sec inserting
  15. mysql tables in use 1, locked 1
  16. 3 lock struct(s), heap size 1248, 2 row lock(s), undo log entries 1
  17. MySQL thread id 55103302, OS thread handle 0x7f6bf2320700, query id 18803072370 db.example.com 127.0.0.1 application update
  18. INSERT INTO users ( created_at, external_record_type, external_id, email ) VALUES ( '2015-05-11 18:42:43', 'person', '212999170', 'user2@example.com' )
  19. *** (2) HOLDS THE LOCK(S):
  20. RECORD LOCKS space id 18 page no 1103450 n bits 320 index `index_users_on_external_record_type_and_external_id` of table `users`.`users` trx id B8972CA5 lock_mode X locks gap before rec
  21. *** (2) WAITING FOR THIS LOCK TO BE GRANTED:
  22. RECORD LOCKS space id 18 page no 1103450 n bits 320 index `index_users_on_external_record_type_and_external_id` of table `users`.`users` trx id B8972CA5 lock_mode X locks gap before rec insert intention waiting
  23. *** WE ROLL BACK TRANSACTION (2)
  24.  
  25. CREATE TABLE users
  26. (id int NOT NULL AUTO_INCREMENT,
  27. external_id varchar(255) NOT NULL,
  28. external_record_type varchar(255) NOT NULL,
  29. email varchar(255) NOT NULL,
  30. created_at datetime DEFAULT NULL,
  31. PRIMARY KEY(id),
  32. UNIQUE KEY index_users_on_external_record_type_and_external_id (external_record_type(8), external_id),
  33. KEY index_users_on_email (email))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement