bzdgn / jdbm2

Automatically exported from code.google.com/p/jdbm2
0 stars 0 forks source link

Need forceClose #17

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It starts with this error:
java.lang.InternalError: wrong BPage header
        at jdbm.btree.BPage.deserialize(BPage.java:1037)
        at jdbm.btree.BPage.deserialize(BPage.java:59)
        at jdbm.recman.BaseRecordManager.fetch2(BaseRecordManager.java:545)
        at jdbm.recman.BaseRecordManager.fetch(BaseRecordManager.java:509)
        at jdbm.recman.CacheRecordManager.fetch(CacheRecordManager.java:220)
        at jdbm.btree.BPage.loadBPage(BPage.java:892)
        at jdbm.btree.BPage.access$000(BPage.java:59)
        at jdbm.btree.BPage$Browser.getNext(BPage.java:1469)
        at jdbm.btree.BTreeSortedMap$1$2.ensureNext(BTreeSortedMap.java:116)
        at jdbm.btree.BTreeSortedMap$1$2.next(BTreeSortedMap.java:140)
        at jdbm.btree.BTreeSortedMap$1$2.next(BTreeSortedMap.java:109)

So now I need to close it (need to release the filehandle so I can umount the 
volume with the jdbm data), but I get this error:

ERROR: inUse blocks at close time
elem 0: BlockIO(23869,false,null)

java.lang.Error: inUse blocks at close time
        at jdbm.recman.RecordFile.close(RecordFile.java:334)
        at jdbm.recman.BaseRecordManager.close(BaseRecordManager.java:306)
        at jdbm.recman.CacheRecordManager.close(CacheRecordManager.java:241)

In my particular case, I could care less about the data.  I just need to clean 
up and start over (without killing java).

Original issue reported on code.google.com by brent.pi...@gmail.com on 7 Mar 2013 at 12:53