lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "gogogo45" <gogog...@126.com>
Subject Lucene Input/Output error
Date Fri, 17 Dec 2010 06:12:59 GMT
Hello All,

I'm new to lucene, and i'm confronted with an input/output error exception listed as below.
As designed, I have one machine writing to an index stored on an NFS mount, and other machine(s)

reading (and periodically re-opening the index). 

I use a thread to maintain all the IndexSearchers and reopen them periodically,  when i reopen
an 
IndexReader, there may be some queries still running using this reader. Could this to be the
cause my 
Input/Output error?

I'm using the Lucene 3.0.1 version.

Please give me some idea. 
Thanks.

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2010-12-16 17:27:32 [0JThreadPool-1] ERROR - IO Exception
java.io.IOException: Input/output error
at sun.nio.ch.FileDispatcher.pread0(Native Method)
at sun.nio.ch.FileDispatcher.pread(FileDispatcher.java:31)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:230)
at sun.nio.ch.IOUtil.read(IOUtil.java:206)
at sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:625)
at org.apache.lucene.store.NIOFSDirectory$NIOFSIndexInput.readInternal(NIOFSDirectory.java:157)
at org.apache.lucene.store.BufferedIndexInput.refill(BufferedIndexInput.java:160)
at org.apache.lucene.store.BufferedIndexInput.readByte(BufferedIndexInput.java:39)
at org.apache.lucene.store.IndexInput.readInt(IndexInput.java:69)
at org.apache.lucene.store.IndexInput.readLong(IndexInput.java:92)
at org.apache.lucene.index.FieldsReader.doc(FieldsReader.java:218)
at org.apache.lucene.index.SegmentReader.document(SegmentReader.java:901)
at org.apache.lucene.index.DirectoryReader.document(DirectoryReader.java:525)
at org.apache.lucene.index.IndexReader.document(IndexReader.java:658)
at org.apache.lucene.search.IndexSearcher.doc(IndexSearcher.java:144)
at org.apache.lucene.search.MultiSearcher.doc(MultiSearcher.java:173)


2010-12-17 



Allan

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