Hi, sometimes I got the "read past EOF" exception too. In my case the exception was thrown by FSDirectory::FSIndexInput::readInternal(). Here it was tried to refill the buffer and to read the second 1024 (=buffer size) bytes of the file. But the the file handle position was at the end of the file already, and readInternal() throws this exception. Putting a seekInternal() before the related call of readInternal() (see attachment) seems to solve this issue. But this may be only a stopgap.
Kind regards, Veit 2009/12/7 Ben vanklinken <bvanklin...@gmail.com>: > It means the file is shorter thn it expected. Probably something in > the file is corrupt. Can you reproduce it with a new index? If you > could try and put a breakpoint in your debugger and get a backtrace > for when it hits thy point we might be able to find the problem, can u > do that? > > B > > Sent from my iPhone > > On 06/12/2009, at 8:46 PM, Michael Levin <mele...@stanford.edu> wrote: > >> Hi, >> >> I am getting this exception with the latest CLucene source: >> >> IndexInput read past EOF >> >> It is thrown by IndexReader when deleting some documents but not >> others. >> I have not found a pattern to it yet. What does this error message >> mean? >> >> Thanks! >> >> -- >> Michael Levin <mele...@stanford.edu> >> >> --- >> --- >> --- >> --------------------------------------------------------------------- >> Join us December 9, 2009 for the Red Hat Virtual Experience, >> a free event focused on virtualization and cloud computing. >> Attend in-depth sessions from your desk. Your couch. Anywhere. >> http://p.sf.net/sfu/redhat-sfdev2dev >> _______________________________________________ >> CLucene-developers mailing list >> CLucene-developers@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/clucene-developers > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > CLucene-developers mailing list > CLucene-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/clucene-developers >
IndexInput.cpp.diff
Description: Binary data
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev
_______________________________________________ CLucene-developers mailing list CLucene-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/clucene-developers