Skip to content

Chunk not found exception when trying to drop index #977

@AngryGami

Description

@AngryGami

I'm getting following exception when trying to drop index

org.h2.mvstore.MVStoreException: Chunk 616 not found [2.2.224/9]
       at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
       at org.h2.mvstore.FileStore.getChunk(FileStore.java:2006)
       at org.h2.mvstore.FileStore.readPage(FileStore.java:1953)
       at org.h2.mvstore.MVStore.readPage(MVStore.java:1021)
       at org.h2.mvstore.MVMap.readPage(MVMap.java:632)
       at org.h2.mvstore.MVMap.readOrCreateRootPage(MVMap.java:657)
       at org.h2.mvstore.MVMap.setRootPos(MVMap.java:642)
       at org.h2.mvstore.MVStore.openMap(MVStore.java:479)
       at org.h2.mvstore.MVStore.openMap(MVStore.java:426)
       at org.h2.mvstore.MVStore.openMap(MVStore.java:405)
       at org.dizitart.no2.mvstore.NitriteMVStore.openMap(NitriteMVStore.java:112)
       at org.dizitart.no2.index.SingleFieldIndex.findIndexMap(SingleFieldIndex.java:166)
       at org.dizitart.no2.index.SingleFieldIndex.drop(SingleFieldIndex.java:129)
       at org.dizitart.no2.index.ComparableIndexer.dropIndex(ComparableIndexer.java:83)
...

I understand that my db is probably corrupted and I could just delete db file and start from scratch but I believe there must be less destructive way. I don't want to loose everything else in db just because one index is corrupted.

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