I had this exception:

Caused by: java.lang.IllegalStateException: Chunk metadata too long [1.4.199
/3]
 at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:893)
 at org.h2.mvstore.Chunk.writeChunkHeader(Chunk.java:165)
 at org.h2.mvstore.MVStore.storeNow(MVStore.java:1370)
 at org.h2.mvstore.MVStore.store(MVStore.java:1233)
 at org.h2.mvstore.MVStore.tryCommit(MVStore.java:1178)
 at org.h2.mvstore.MVStore.writeInBackground(MVStore.java:2821)
 at org.h2.mvstore.MVStore$BackgroundWriterThread.run(MVStore.java:3191)

Unlike the case posted by someone else, there was plenty of disk space 
available at the time. The operation that apparently triggered it was the 
deletion of a large number (over 100K) of map entries in succession. I am 
not sure how far it got.

The deletions were being done on one thread, there were likely to have been 
insertions into the same map happening concurrently on another thread, at a 
low rate (once per second.) Since MVStore is supposed to support concurrent 
reads and writes I assume this should not be a problem.

Any thoughts on what might have caused this or more importantly what could 
be done to avoid it? And a further question - after this exception any 
further attempts to access the database resulted in "This store is closed" 
errors - is there a recommended way to deal with this, i.e. have the store 
automatically reopened?


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/h2-database/3242bc41-2af3-4d18-9650-42e47931e036%40googlegroups.com.

Reply via email to