lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bhavin Pandya" <>
Subject Re: read past EOF
Date Wed, 30 Aug 2006 12:56:58 GMT
Hi Mike,

Here is the full stack trace of error which I got at search time.... read past EOF
at org.apache.lucene.index.SegmentTermEnum.(
at org.apache.lucene.index.TermInfosReader.(
at org.apache.lucene.index.SegmentReader.initialize(
at org.apache.lucene.index.SegmentReader.get(
at org.apache.lucene.index.SegmentReader.get(
at org.apache.lucene.index.IndexReader$1.doBody(

same kind of exception i am getting while i am trying to optimize my 
index..but at that time Its throwing from IndexWriter ...

My guess is ..."One of my index is got corrupted so whenever I am trying to 
search the index or optimize the index or merging the multiple index ...It 
will throws same exception but from different class...sometime from 
IndexReader or sometime from IndexWriter depends on how it is being called"

I am storing my index on local file system only ..on unix machine.

Here is in short what i am doing actually...

I have a index which is updated every 15min... using lucene 1.9 and jdk1.4.. 
. on unix machine....
once the index gets done I am moving index folder to "searchable-index" searchable index is completely saparate from actual index.
Its not multi-threaded I am sure only one thread at a time 
accessing the index...


----- Original Message ----- 
From: "Michael McCandless" <>
To: <>
Sent: Wednesday, August 30, 2006 4:07 PM
Subject: Re: read past EOF

> Bhavin Pandya wrote:
>> I am running lucene 1.9 on unix machine...updating my index very 
>> frequently....after few updation it says "read past eof"
>> I know this exception generally comes when one of the index got 
>> corrupted...but i dont know why it got corrupted ?
>> may be mine code problem but i am not able to figure out exact problem...
> Is it your IndexWriter that's raising the exception?  Can you post the 
> full exception here?  Also could you provide more detail about how your 
> application works, what filesystem you're using under Unix, etc?
> Mike
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message