The database has been closed from AssertionError

52 views
Skip to first unread message

Dan Howard

unread,
Dec 23, 2024, 2:01:36 AM12/23/24
to H2 Database
Hi all,

I think I caused this by running a query repeatedly too often/quickly.

H2 2.2.224

Caused by: org.h2.mvstore.MVStoreException: java.lang.AssertionError: 38662144 != 26615808 [2.2.224/3]
at com.h2d...@2.2.224/org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
at com.h2d...@2.2.224/org.h2.mvstore.FileStore.storeBuffer(FileStore.java:1529)
at com.h2d...@2.2.224/org.h2.mvstore.FileStore.lambda$serializeAndStore$3(FileStore.java:1432)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
... 1 common frames omitted
Caused by: java.lang.AssertionError: 38662144 != 26615808
at com.h2d...@2.2.224/org.h2.mvstore.RandomAccessStore.shrinkStoreIfPossible(RandomAccessStore.java:679)
at com.h2d...@2.2.224/org.h2.mvstore.RandomAccessStore.writeChunk(RandomAccessStore.java:377)
at com.h2d...@2.2.224/org.h2.mvstore.RandomAccessStore.writeChunk(RandomAccessStore.java:28)
at com.h2d...@2.2.224/org.h2.mvstore.FileStore.storeBuffer(FileStore.java:1524)
... 6 common frames omitted

Andreas Reichel

unread,
Dec 23, 2024, 2:10:28 AM12/23/24
to h2-da...@googlegroups.com
Please upgrade to the latest H2 version. H2 2.2.224 was not the best release and quite a few important issues have been fixed since.
Warm regards
Andres
--
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 h2-database...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/h2-database/8c50185b-5a63-4285-a942-57905431926en%40googlegroups.com.

Reply all
Reply to author
Forward
Message has been deleted
0 new messages