Any one facing the same issue? I turned off MVCC and yet was hit by this 
today.



On Thursday, August 25, 2016 at 2:26:16 PM UTC-4, Faraz Rizvi wrote:
>
> Hi,
>
> I am running H2 in PostgresSQL mode as follows: 
>
>
> jdbc:h2:~/logs/trades/20160825/allocations-data/allocserver;MODE=PostgreSQL;AUTO_SERVER=TRUE;MVCC=TRUE;CACHE_SIZE=65536;CACHE_TYPE=SOFT_LRU
>
> The embedded H2 runs fine but then all of a sudden fails with the 
> following exception in trace.db. I cannot find any information on the 
> internet. Can anyone please help?
>
>
>
>
> 08-24 21:18:01 database: flush
> org.h2.message.DbException: General error: 
> "java.util.ConcurrentModificationException" [50000-187]
>         at org.h2.message.DbException.get(DbException.java:168)
>         at org.h2.message.DbException.convert(DbException.java:295)
>         at 
> org.h2.mvstore.db.MVTableEngine$1.uncaughtException(MVTableEngine.java:93)
>         at org.h2.mvstore.MVStore.writeInBackground(MVStore.java:2397)
>         at 
> org.h2.mvstore.MVStore$BackgroundWriterThread.run(MVStore.java:2583)
> Caused by: org.h2.jdbc.JdbcSQLException: General error: 
> "java.util.ConcurrentModificationException" [50000-187]
>         at 
> org.h2.message.DbException.getJdbcSQLException(DbException.java:345)
>         ... 5 more
> Caused by: java.util.ConcurrentModificationException
>         at java.util.HashMap$HashIterator.nextNode(HashMap.java:1429)
>         at java.util.HashMap$ValueIterator.next(HashMap.java:1458)
>         at org.h2.mvstore.MVStore.applyFreedSpace(MVStore.java:1376)
>         at org.h2.mvstore.MVStore.storeNowTry(MVStore.java:1042)
>         at org.h2.mvstore.MVStore.storeNow(MVStore.java:973)
>         at org.h2.mvstore.MVStore.commitAndSave(MVStore.java:962)
>         at org.h2.mvstore.MVStore.compactRewrite(MVStore.java:1817)
>         at org.h2.mvstore.MVStore.compact(MVStore.java:1701)
>         at org.h2.mvstore.MVStore.writeInBackground(MVStore.java:2393)
>         ... 1 more
> 08-24 21:18:04 jdbc[3]: exception
> org.h2.jdbc.JdbcSQLException: The database has been closed [90098-187]
>         at 
> org.h2.message.DbException.getJdbcSQLException(DbException.java:345)
>         at org.h2.message.DbException.get(DbException.java:179)
>         at org.h2.message.DbException.get(DbException.java:155)
>         at org.h2.message.DbException.get(DbException.java:144)
>         at org.h2.engine.Session.getTransaction(Session.java:1451)
>         at org.h2.engine.Session.getStatementSavepoint(Session.java:1461)
>         at org.h2.engine.Session.setSavepoint(Session.java:690)
>         at org.h2.command.Command.executeUpdate(Command.java:248)
>         at 
> org.h2.jdbc.JdbcPreparedStatement.execute(JdbcPreparedStatement.java:198)
>         at 
> flextrade.flexfixj.warehouse.impl.statements.UpdateSessionStatement.execute(UpdateSessionStatement.java:45)
>         at 
> flextrade.flexfixj.persistence.AsynchronousPersisterImpl.executeStatement(AsynchronousPersisterImpl.java:46)
>         at 
> flextrade.flexfixj.persistence.AsynchronousPersisterImpl.enqueueStatement(AsynchronousPersisterImpl.java:37)
>         at 
> flextrade.flexfixj.warehouse.impl.JdbcWarehouse.updateSession(JdbcWarehouse.java:227)
>         at 
> flextrade.flexfixj.warehouse.impl.JdbcWarehouse.incrNextTargetMsgSeqNum(JdbcWarehouse.java:588)
>         at 
> quickfix.SessionState.incrNextTargetMsgSeqNum(SessionState.java:370)
>         at quickfix.Session.nextHeartBeat(Session.java:1602)
>         at quickfix.Session.next(Session.java:1002)
>         at 
> quickfix.ThrottleableThreadPerSessionEventHandlingStrategy$MessageDispatchConsumer.run(ThrottleableThreadPerSessionEventHandlingStrategy.java:151)
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>         at java.lang.Thread.run(Thread.java:745)
> 08-24 21:18:04 jdbc[3]: exception
>
>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to