Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ------------------------
- LATEST DETECTED DEADLOCK
- ------------------------
- 150511 18:42:43
- *** (1) TRANSACTION:
- TRANSACTION B8972CA4, ACTIVE 0 sec inserting
- mysql tables in use 1, locked 1
- LOCK WAIT 3 lock struct(s), heap size 1248, 2 row lock(s), undo log entries 1
- MySQL thread id 55103359, OS thread handle 0x7f6babefb700, query id 18803072369 db.example.com 127.0.0.1 application update
- INSERT INTO users ( created_at, external_record_type, external_id, email ) VALUES ( '2015-05-11 18:42:43', 'person', '212999172', 'user1@example.com' )
- *** (1) WAITING FOR THIS LOCK TO BE GRANTED:
- 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
- *** (2) TRANSACTION:
- TRANSACTION B8972CA5, ACTIVE 0 sec inserting
- mysql tables in use 1, locked 1
- 3 lock struct(s), heap size 1248, 2 row lock(s), undo log entries 1
- MySQL thread id 55103302, OS thread handle 0x7f6bf2320700, query id 18803072370 db.example.com 127.0.0.1 application update
- INSERT INTO users ( created_at, external_record_type, external_id, email ) VALUES ( '2015-05-11 18:42:43', 'person', '212999170', 'user2@example.com' )
- *** (2) HOLDS THE LOCK(S):
- 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
- *** (2) WAITING FOR THIS LOCK TO BE GRANTED:
- 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
- *** WE ROLL BACK TRANSACTION (2)
- CREATE TABLE users
- (id int NOT NULL AUTO_INCREMENT,
- external_id varchar(255) NOT NULL,
- external_record_type varchar(255) NOT NULL,
- email varchar(255) NOT NULL,
- created_at datetime DEFAULT NULL,
- PRIMARY KEY(id),
- UNIQUE KEY index_users_on_external_record_type_and_external_id (external_record_type(8), external_id),
- KEY index_users_on_email (email))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement