at org.hibernate.impl.SessionImpl.managedFlush (SessionImpl.java:338)
A possible bug in H2?
Regards,
Thomas
--
salam hangat,
Thomas Wiradikusuma
http://wiradikusuma.blogspot.com/ <-- Tidak putih, tidak dapat cinta sejati
I have used the most recent version (1.0.63) but the following
exception keep filling the log file:
Caused by: org.h2.jdbc.JdbcBatchUpdateException: Timeout trying to
lock table CONTENTASSETRESPONSE [HYT00-50]
at org.h2.jdbc.JdbcPreparedStatement.executeBatch(JdbcPreparedStatement.java:1040)
at org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297)
at org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297)
at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:242)
... 36 more
I don't encounter the exception if I do things very slow (one by one),
but once I stress test my app (using JMeter, 1000hits), it throws the
exception. using MySQL everything is OK (I only changed driver and
DB-connection configuration).
anyway, Merry Christmas :-)
On Dec 26, 2007 11:43 PM, Thomas Mueller <thomas.to...@gmail.com> wrote:
> Hi,
>
>
> > A possible bug in H2?
>
> I don't think so. Did you get my first response? Here again:
>
>
> According to the exception code (-50) you are using version 1.0.50 from
> 2007-06-17. You should consider using a newer version. In newer versions,
> read committed is the default isolation level (like in most other
> databases). With older versions (including the version you are using), the
> default isolation level is serializable, where such scenarios can easily
> lead to lock timeout.
--
regards,
Thomas Wiradikusuma
On Dec 27, 2007 10:52 AM, Thomas Wiradikusuma <wiradi...@gmail.com> wrote:
> aarrrrgghhhh.... it keeps happening!!!
>
> I have used the most recent version (1.0.63) but the following
> exception keep filling the log file:
--
regards,
Thomas Wiradikusuma
> I have used the most recent version (1.0.63) but the following
> exception keep filling the log file:
> Caused by: org.h2.jdbc.JdbcBatchUpdateException: Timeout trying to
> lock table CONTENTASSETRESPONSE [HYT00-50]
> at org.h2.jdbc.JdbcPreparedStatement.executeBatch(JdbcPreparedStatement.java:1040)
> at org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297)
> at org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297)
> at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)
The exception code 'HYT00-50' means you are using version 1.0.50. If
you are using version 1.0.63, then the exception code would be
HYT00-63. Could you check that the old version of H2 is not in the
classpath?
> how do I enable row level locking in H2? probably it's because the locking level.
I don't think that is the problem, but H2 does not yet support row
level locking. It does support multi version concurrency as an option
by the way, but this feature is quite new.
Happy New Year!
Regards,
Thomas
arrrrgggghhhhhh.... you're right, i forget to clean!
thank you very much thomas, sorry for being stupid :-D
btw, thanks to h2, i can reach 200tps (mysql 100tps).
--
regards,
Thomas Wiradikusuma