You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by Rick Curtis <cu...@gmail.com> on 2010/06/10 17:31:48 UTC
Re: Under what circumstances a table/row is locked exclusively if
Optimistic=true & LockManager=version?
We shouldn't be using any database locks. I'd suggest turning on SQL trace
[1] to see what we are issuing for SQL.
Thanks,
Rick
[1] <property name="openjpa.Log" value="SQL=trace"/>
On Thu, Jun 10, 2010 at 7:23 AM, egoosen <eg...@metropolitan.co.za>wrote:
>
> I'm experiencing a similar problem, and its really disappointing that no
> one
> has replied to this post!
>
> We are getting a SQL timeout exception on DB2 (version 8.x):
> DB2 SQL error: SQLCODE: -911, SQLSTATE: 40001, SQLERRMC: 68;
>
> The exception occurs when two processes are run, the first process is a
> long
> running transaction that inserts records into a specific table.
> The second process tries to read from the above table, and gets the timeout
> after a minute (which is what the timeout is set to on our database).
>
> We are using Optimistic locking with version column, so as far as I'm
> aware,
> the table should not be exclusively locked until the transaction is about
> to
> be committed!
>
> Using: OpenJPA 1.2.1
>
> Please HELP!!!
> --
> View this message in context:
> http://openjpa.208410.n2.nabble.com/Under-what-circumstances-a-table-row-is-locked-exclusively-if-Optimistic-true-LockManager-version-tp581619p5162919.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>