dbTalk Databases Forums  

RE: Lock wait timeout exceeded during concurrent inserts on an

mailing.database.myodbc mailing.database.myodbc


Discuss RE: Lock wait timeout exceeded during concurrent inserts on an in the mailing.database.myodbc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ady Wicaksono
 
Posts: n/a

Default RE: Lock wait timeout exceeded during concurrent inserts on an - 02-21-2006 , 12:37 AM






See
http://bugs.mysql.com/bug.php?id=15868

Make sure you don't hit this bug too



Quote:
I'm doing about 200,000 inserts, collecting them into batches of 500,
and queuing them into a thread pool with 6 threads.

R.

-----Original Message-----
From: Ady Wicaksono [mailto:ady.wicaksono (AT) infokom (DOT) net]
Sent: Monday, February 20, 2006 8:36 PM
To: Robert DiFalco
Cc: mysql (AT) lists (DOT) mysql.com
Subject: Re: Lock wait timeout exceeded during concurrent inserts on an
InnoDB table....

Roberts

How many concurreent inserts you've done?
What MySQL version you use?

Concurrent inserts (there also may be concurrent reads going on) are
intermittently causing:


java.sql.SQLException: Lock wait timeout exceeded; try
restarting
transaction

I noticed that adding innodb_table_locks=0 in my.ini fixes the
problem.
Looking through the manual however, this should only be a problem when

I am using LOCK_TABLE, but there is no where in my code that I use
this.
Do some queries implicitly add LOCK_TABLE? Is there a way to disable
innodb_table_locks when I create my database or in some JDBC property
so I don't require users to modify their my.ini files?

FWIW, I'm guessing this is a bug; i.e. hat innodb_table_locks controls

more than just the locking behavior of an explicit LOCK TABLE.

R.


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql To unsubscribe:
http://lists.mysql.com/mysql?unsub=a...ment (DOT) com











--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=m...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.