An update:

Daniel Naber suggested using IndexWriter.setUseCompoundFile() to see if it
happens with the compound index format. Before I had a chance to try it out,
this happened:

java.io.FileNotFoundException: C:\index\segments (The system cannot find the
file specified)
        at java.io.RandomAccessFile.open(Native Method)
        at java.io.RandomAccessFile.<init>(RandomAccessFile.java:200)
        at org.apache.lucene.store.FSInputStream$Descriptor.<init>(FSDirectory.j
ava:321)
        at org.apache.lucene.store.FSInputStream.<init>(FSDirectory.java:329)
        at org.apache.lucene.store.FSDirectory.openFile(FSDirectory.java:268)
        at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:71)
        at org.apache.lucene.index.IndexWriter$1.doBody(IndexWriter.java:154)
        at org.apache.lucene.store.Lock$With.run(Lock.java:116)
        at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:149)
        at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:131)

so even the segments file somehow got deleted. Hoping someone can shed some
light on this...

Kelvin

On Thu, 29 Apr 2004 11:45:36 +0800, Kelvin Tan said:
> Errr, sorry for the cross-post to lucene-dev as well, but I realized this mail
> really belongs on lucene-user...
>
> I've been experiencing intermittent disappearing segments which result in the
> following stacktrace:
>
> Caused by: java.io.FileNotFoundException: C:\index\_1ae.fnm (The system cannot
> find the file specified)
> at java.io.RandomAccessFile.open(Native Method)
> at java.io.RandomAccessFile.<init>(RandomAccessFile.java:200)
> at
> org.apache.lucene.store.FSInputStream$Descriptor.<init>(FSDirectory.java:321)
> at org.apache.lucene.store.FSInputStream.<init>(FSDirectory.java:329)
> at org.apache.lucene.store.FSDirectory.openFile(FSDirectory.java:268)
> at org.apache.lucene.index.FieldInfos.<init>(FieldInfos.java:78)
> at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:104)
> at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:95)
> at org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:112)
> at org.apache.lucene.store.Lock$With.run(Lock.java:116)
> at org.apache.lucene.index.IndexReader.open(IndexReader.java:103)
> at org.apache.lucene.index.IndexReader.open(IndexReader.java:91)
> at org.apache.lucene.search.IndexSearcher.<init>(IndexSearcher.java:75)
>
> The segment that disappears (_1ae.fnm) varies.
>
> I can't seem to reproduce this error consistently, so don't have a clue what
> might cause it, but it usually happens after the application has been running
> for some time. Has anyone experienced something similar, or can anyone point
me
> in the right direction?
>
> When this occurs, I need to rebuild the entire index for it to be usable. Very
> troubling indeed...
>
> Kelvin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to