-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
I'm working up a POC using this library for temp storage of large datasets for batch processing. Once the map size gets close to the end it throws this error when store.commit(); is called.
org.h2.mvstore.MVStoreException: java.lang.AssertionError: 1 chunk:4b,block:17a,len:3,liveMax:0,livePages:0,map:2,max:2860,next:17d,pages:4,root:12c00003c985,time:4716,unused:471d,unusedAtVersion:4b,version:4b,toc:2170,occupancy:0f {0, 1, 2, 3} [2.1.214/3] [2.1.214/3]
Thrown from the highlighted assert below.
The calling code:
try (MVStore store = MVStore.open(DB_FILE_NAME)) {
if (store.hasMap(MAP_NAME)) {
MVMap<Integer, T> map = store.openMap(MAP_NAME);
log.info("Map size: " + map.size());
if (!map.isEmpty()) {
T obj = map.remove(map.firstKey());
store.commit();
return obj;
}
}
return null;
}
}
I'm still working through this, but I'm unsure how to troubleshoot this and was looking for some guidance.
Thank you for your time and help.
Metadata
Metadata
Assignees
Labels
No labels
