Skip to content

MVStoreException at accountForRemovedPage #3682

@edavenport24

Description

@edavenport24

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.

image

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions