lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nott <bharath.n...@gmail.com>
Subject Re: FileNotFound Exception While Indexing
Date Tue, 12 Jun 2007 18:44:17 GMT
HI
Thanks  for the update
This does not occur often. Happens occassionally. I'll further monitor and
let you know if I find some thing
If it happens will do the verbose output for IndexWriter.setInfoStream

Regards
Bharath



On 6/12/07, Michael McCandless <lucene@mikemccandless.com> wrote:
>
>
> This looks like a rather serious error.  It seems like that file has
> somehow gone missing in your index.
>
> On adding a given document, Lucene has flushed its buffered documents
> and is attempting to merge segments together when it finds that one of
> the segments that it thinks exists (_v3.cfs) and needs to open for
> merging, can't actually be opened.
>
> Were there any other exceptions before this one?  Is the error easily
> reproduced?  If so, does it always hit the exception on that one file?
>
> One thing to try is to call IndexWriter.setInfoStream(System.out)
> which will cause the writer & deleter to print verbose details of
> merges/deletions taking place.  That could give us a clue on the root
> cause.
>
> Mike
>
> "Nott" <bharath.nott@gmail.com> wrote:
> > Hi
> > We run a batch job written on Java that reads a Oracle DB and creates a
> > Lucene INDEX. We use Compass interface to do the index creation
> > operations
> > This is a scheduled job and this is a batch insert transaction job
> > suddenly we are getting the following exception.
> > I wnet through the forum and various FAQ's but could not find any thing
> > conclusive for this
> > Is some thing wrong in our setup or this is a bug ?
> >
> > java.io.FileNotFoundException:
> >
> /opt/ibm/wwwroot3/lucene/IRIS/IRISLIVE1.3.1/INDEX9/index/irismodel/_v3.cfs
> > (No such file or directory)
> >     at java.io.RandomAccessFile.open(Native Method)
> >     at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
> >     at org.apache.lucene.store.FSIndexInput$Descriptor.<init>(
> > FSDirectory.java:497)
> >     at org.apache.lucene.store.FSIndexInput.<init>(FSDirectory.java:522)
> >     at
> >     org.apache.lucene.store.FSDirectory.openInput(FSDirectory.java:434)
> >     at org.apache.lucene.index.CompoundFileReader.<init>(
> > CompoundFileReader.java:63)
> >     at
> >     org.apache.lucene.index.SegmentReader.initialize(SegmentReader.java
> > :154)
> >     at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:140)
> >     at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:121)
> >     at org.apache.lucene.index.IndexWriter.mergeSegments(
> IndexWriter.java
> > :1473)
> >     at org.apache.lucene.index.IndexWriter.maybeMergeSegments(
> > IndexWriter.java:1415)
> >     at
> >     org.apache.lucene.index.IndexWriter.flushRamSegments(
> IndexWriter.java
> > :1352)
> >     at org.apache.lucene.index.IndexWriter.maybeFlushRamSegments(
> > IndexWriter.java:1344)
> >     at
> >     org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java
> :697)
> >
> >
> >
> >
> > at
> >
> org.compass.core.lucene.engine.transaction.BatchInsertTransaction.doCreate
> (
> > BatchInsertTransaction.java:208)
> >     at
> >
> org.compass.core.lucene.engine.transaction.AbstractTransaction.create
> > (AbstractTransaction.java:109)
> >     at org.compass.core.lucene.engine.LuceneSearchEngine.create(
> > LuceneSearchEngine.java:330)
> >     at org.compass.core.impl.DefaultCompassSession.create(
> > DefaultCompassSession.java:288)
> >     at org.worldbank.index.iris.IRISIndexService.createFullIndex(
> > IRISIndexService.java:79)
> >     at org.worldbank.search.cron.IRISIndexCron.execute(
> IRISIndexCron.java
> > :31)
> >     at org.worldbank.search.cron.AllCrons.main(AllCrons.java:15)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>


-- 
~B

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message