lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <ian....@gmail.com>
Subject Re: Lucene Input/Output error
Date Fri, 17 Dec 2010 15:51:52 GMT
"Input/Output error" is not the most descriptive error message.  Are
you using a custom IndexDeletionPolicy?  See the javadocs for some
comments on using lucene over NFS.


--
Ian.


On Fri, Dec 17, 2010 at 6:12 AM, gogogo45 <gogogo45@126.com> wrote:
> 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
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message