"Sleep interrupted"

353 views
Skip to first unread message

Eric Jain

unread,
Apr 12, 2011, 2:02:30 PM4/12/11
to H2 Database
Noticed this failure in the logs, just once so far. I recently
upgraded from 1.3.153 to 1.3.154. The connection is obtained like so:
jdbc:h2:file:db/test;AUTO_SERVER=TRUE;MVCC=TRUE.


org.h2.jdbc.JdbcSQLException: Error opening database: "Sleep
interrupted" [8000-153]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:
327)
at org.h2.message.DbException.get(DbException.java:156)
at org.h2.store.FileLock.getExceptionFatal(FileLock.java:439)
at org.h2.store.FileLock.sleep(FileLock.java:434)
at org.h2.store.FileLock.lockFile(FileLock.java:336)
at org.h2.store.FileLock.lock(FileLock.java:134)
at org.h2.engine.Database.open(Database.java:535)
at org.h2.engine.Database.openDatabase(Database.java:218)
at org.h2.engine.Database.<init>(Database.java:213)
at org.h2.engine.Engine.openSession(Engine.java:56)
at org.h2.engine.Engine.openSession(Engine.java:159)
at org.h2.engine.Engine.createSessionAndValidate(Engine.java:138)
at org.h2.engine.Engine.createSession(Engine.java:121)
at org.h2.engine.Engine.createSession(Engine.java:28)
at
org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:
285)
at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:114)
at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:98)
at org.h2.Driver.connect(Driver.java:72)
at org.h2.jdbcx.JdbcDataSource.getJdbcConnection(JdbcDataSource.java:
184)
at org.h2.jdbcx.JdbcDataSource.getConnection(JdbcDataSource.java:159)
at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
...
Caused by: java.lang.InterruptedException: sleep interrupted
at java.lang.Thread.sleep(Native Method)
at org.h2.store.FileLock.sleep(FileLock.java:432)
... 94 more

Thomas Mueller

unread,
Apr 13, 2011, 7:04:42 PM4/13/11
to h2-da...@googlegroups.com

Hi,

It sounds like something called Thread.interrupt, do you know what component it could be? I will then investigate (after my vacation).

Regards,
Thomas

> --
> You received this message because you are subscribed to the Google Groups "H2 Database" group.
> To post to this group, send email to h2-da...@googlegroups.com.
> To unsubscribe from this group, send email to h2-database...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.
>

Thomas Mueller

unread,
May 16, 2011, 3:34:29 PM5/16/11
to h2-database
Hi,

Could you reproduce the problem? I would be interested to understand why the thread is interrupted.

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