Timeout Trying to lock table

355 views
Skip to first unread message

edwardsk

unread,
Mar 5, 2009, 5:48:13 PM3/5/09
to H2 Database
I get the following error while a long running query is in the process
of executing... and an attempt to call an insert statement (batch of
inserts via preparedStatement).

Timeout trying to lock table PAST_SCOREBOARD_CHANNEL_DATA [50200-107]


Please note we are using MULTI_THREADED=1 in our db connection url.

kedwards

unread,
Mar 6, 2009, 9:03:43 AM3/6/09
to H2 Database
Also, it should be noted that the inserts are happening on one thread
on a server and the queries are "on demand" from a user's client
application.

Thomas Mueller

unread,
Mar 11, 2009, 3:08:20 PM3/11/09
to h2-da...@googlegroups.com
Hi,

I'm afraid I don't have a good solution for this problem.

You can increase the lock timeout:
http://www.h2database.com/html/grammar.html#setlocktimeout

You can try if the MVCC mode works for you:
http://www.h2database.com/html/advanced.html#mvcc

Regards,
Thomas
Reply all
Reply to author
Forward
0 new messages