HHH-6843 Increasing the lock timeout. The default timeout is very low (see http://stackoverflow.com/questions/4162557/timeout-error-trying-to-lock-table-in-h2)

Turns out that at least one test (LockTest) passed due to combination of an uncaught TimeoutException + wrong assumptions. Increasing the timeout seems also more realistic in comparison to other databases.
This commit is contained in:
Hardy Ferentschik 2011-11-23 17:17:48 +01:00 committed by Strong Liu
parent d382e70b65
commit c520a81990
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@
#
hibernate.dialect org.hibernate.dialect.H2Dialect
hibernate.connection.driver_class org.h2.Driver
hibernate.connection.url jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1;MVCC=TRUE
hibernate.connection.url jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1;MVCC=TRUE;LOCK_TIMEOUT=10000
hibernate.connection.username sa
hibernate.connection.pool_size 5