Problem with too much documents and 0.4 version #12

Closed
manolopm opened this Issue Aug 3, 2009 · 3 comments

Projects

None yet

2 participants

@manolopm

Just upgraded to 0.4 I launch couchdb and I get this from the indexer.
With other databases that are smaller I get no problem.
I've tried to delete the index and try it again, check perms of the files and all that stuff and the problem still there.

[info] [<0.59.0>] 127.0.0.1 - - 'GET' /fisica-nist3/_all_docs_by_seq?startkey=53250&limit=250&include_docs=true 200

[couchdb-lucene] WARN Exception while updating index.

java.io.FileNotFoundException: /usr/local/bin/lucene/_b.fnm (No such file or directory)

at java.io.RandomAccessFile.open(Native Method)

at java.io.RandomAccessFile.(RandomAccessFile.java:233)

at org.apache.lucene.store.FSDirectory$FSIndexInput$Descriptor.(FSDirectory.java:552)

at org.apache.lucene.store.FSDirectory$FSIndexInput.(FSDirectory.java:582)

at org.apache.lucene.store.FSDirectory.openInput(FSDirectory.java:488)

at org.apache.lucene.store.FSDirectory.openInput(FSDirectory.java:482)

at org.apache.lucene.index.FieldInfos.(FieldInfos.java:58)

at org.apache.lucene.index.SegmentReader.initialize(SegmentReader.java:341)

at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:306)

at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:236)

at org.apache.lucene.index.DocumentsWriter.applyDeletes(DocumentsWriter.java:915)

at org.apache.lucene.index.IndexWriter.applyDeletes(IndexWriter.java:4339)

at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:3579)

at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:3450)

at org.apache.lucene.index.IndexWriter.closeInternal(IndexWriter.java:1638)

at org.apache.lucene.index.IndexWriter.rollbackInternal(IndexWriter.java:2748)

at org.apache.lucene.index.IndexWriter.rollback(IndexWriter.java:2683)

at com.github.rnewson.couchdb.lucene.Index$Indexer.updateIndex(Index.java:239)

at com.github.rnewson.couchdb.lucene.Index$Indexer.run(Index.java:96)

at java.lang.Thread.run(Thread.java:636)

[couchdb-lucene] INFO indexer stopped.

[info] [<0.59.0>] 127.0.0.1 - - 'GET' /fisica-nist3/_all_docs_by_seq?startkey=53500&limit=250&include_docs=true 200

@rnewson
Owner

It sounds like you've deleted only part of the index, or you deleted it while couchdb-lucene is running.

Please stop couchdb, delete the whole 'lucene' directory, and start up again. You appear to have corrupted the index by manually deleting some files from it, you need to let couchdb-lucene rebuild from scratch.

@manolopm

Ok, it's seem that something strange happened before. I'll try to delete everything and lauch it again and now works as it should.

@rnewson
Owner

Great. Please reopen if the problem occurs without manual deletions.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment