lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Goodell <good...@gmail.com>
Subject Bug in Sandbox - Berkeley DB
Date Wed, 28 Apr 2004 20:58:38 GMT
IndexReader.delete(int docid) doesn't work with the Berkeley DB
implementation of org.apache.lucene.store.Directory

This error message appears when closing an IndexReader which has a deletion:
PANIC: Invalid argument

I get this stack trace:
java.io.IOException: DB_RUNRECOVERY: Fatal error, run database recovery
       at org.apache.lucene.store.db.Block.put(Block.java:128)
       at org.apache.lucene.store.db.DbOutputStream.close(DbOutputStream.java:111)
       at org.apache.lucene.util.BitVector.write(BitVector.java:155)
       at org.apache.lucene.index.SegmentReader$1.doBody(SegmentReader.java:162)
       at org.apache.lucene.store.Lock$With.run(Lock.java:148)
       at org.apache.lucene.index.SegmentReader.doClose(SegmentReader.java:157)
       at org.apache.lucene.index.IndexReader.close(IndexReader.java:422)

Help!

- andy g

code that triggers this:
// dbdir is a working DbDirectory, docid is a search result
IndexReader read = IndexReader.open(dbdir);
read.delete(docid);
read.close();

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message