Re: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction

2010-02-01 Thread Madonna DeVaudreuil
bject: Re: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction Try to run SHOW ENGINE INNODB STATUS; Near the top there will be some information on the latest deadlock. That might help you to understand what is deadlocking. Sometimes changing the

Re: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction

2010-02-01 Thread Jesper Wisborg Krogh
li_lock l ON l.object_id = q.queue_id AND l.lock_type = 'parse' WHERE l.object_id IS NULL AND q.status = 'parse' ORDER BY q.file_size ASC, q.created ASC, q.queue_id ASC LIMIT 1 However, as I execute this query several times each minute from different applications, I fr

Re: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction

2010-02-01 Thread Michael Dykman
LECT $LOCK_ID, q.queue_id, 'parse', DATE_ADD(NOW(), INTERVAL 1 HOUR) >>> FROM queue q >>>  LEFT JOIN cli_lock l ON l.object_id = q.queue_id AND l.lock_type = >>> 'parse' >>> WHERE l.object_id IS NULL >>>  AND q.status = 'parse&#x

Re: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction

2010-02-01 Thread D. Dante Lorenso
d IS NULL AND q.status = 'parse' ORDER BY q.file_size ASC, q.created ASC, q.queue_id ASC LIMIT 1 However, as I execute this query several times each minute from different applications, I frequently get these messages: DB ERROR: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found

Re: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction

2010-02-01 Thread D. Dante Lorenso
fferent > applications, I frequently get these messages: > > DB ERROR: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when > trying to get lock; try restarting transaction > > Am I writing my query wrong or expecting behavior th

Re: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction

2010-02-01 Thread Johan De Meersman
ile_size ASC, q.created ASC, q.queue_id ASC > > LIMIT 1 > > > > However, as I execute this query several times each minute from different > > applications, I frequently get these messages: > > > > DB ERROR: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found

Re: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction

2010-02-01 Thread Michael Dykman
.file_size ASC, q.created ASC, q.queue_id ASC > LIMIT 1 > > However, as I execute this query several times each minute from different > applications, I frequently get these messages: > > DB ERROR: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when > trying t

Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction

2010-02-01 Thread Dante Lorenso
27;parse' WHERE l.object_id IS NULL AND q.status = 'parse' ORDER BY q.file_size ASC, q.created ASC, q.queue_id ASC LIMIT 1 However, as I execute this query several times each minute from different applications, I frequently get these messages: DB ERROR: SQLSTATE[40001]: Serializati

Re: Deadlock found when trying to get lock; try restarting transaction

2005-10-08 Thread Gleb Paharenko
, and I don't > really understand how it can happen. > I've strip down an example, that does basically : > > BEGIN; > SELECT id FROM ttt WHERE id=3D7 FOR UPDATE; > INSERT INTO ttt(id) VALUES (7); > DELETE FROM ttt WHERE id=3D7; > COMMIT; > > I run 10

Deadlock found when trying to get lock; try restarting transaction

2005-10-07 Thread Pooly
NTO ttt(id) VALUES (7); DELETE FROM ttt WHERE id=7; COMMIT; I run 10 instances of the program in parallel and I get the error : Deadlock found when trying to get lock; try restarting transaction. The isolation level is the default one. My understanding of the SELECT ... FOR UPDATE is that I should no

Deadlock found when trying to get lock;

2002-03-02 Thread Richard Clarke
lmost every 2 seconds. After 4 days I suddenly got the following error, one which I used to get much more frequently with 4.0.0. DBD::mysql::st execute failed: Deadlock found when trying to get lock; Try restarting transaction at /usr/local/lib/perl5/site_perl/5.6.1/i386-freebsd/Mysql.pm line 172.