Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
None
-
None
-
None
-
JDK1.6/Tomcat6
Description
i use distributed query, but found ClosedChannelException.
Caused by: java.nio.channels.ClosedChannelException at sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:88) at sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:613) at org.apache.lucene.store.NIOFSDirectory$NIOFSIndexInput.readInternal(NIOFSDirectory.java:161) at org.apache.lucene.store.BufferedIndexInput.readBytes(BufferedIndexInput.java:139) at org.apache.lucene.index.CompoundFileReader$CSIndexInput.readInternal(CompoundFileReader.java:285) 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.DataInput.readVInt(DataInput.java:86) at org.apache.lucene.index.codecs.DeltaBytesReader.read(DeltaBytesReader.java:40) at org.apache.lucene.index.codecs.PrefixCodedTermsReader$FieldReader$SegmentTermsEnum.next(PrefixCodedTermsReader.java:469) at org.apache.lucene.index.codecs.PrefixCodedTermsReader$FieldReader$SegmentTermsEnum.seek(PrefixCodedTermsReader.java:385) at org.apache.lucene.index.TermsEnum.seek(TermsEnum.java:68) at org.apache.lucene.index.Terms.docFreq(Terms.java:53) at org.apache.lucene.index.SegmentReader.docFreq(SegmentReader.java:898) at org.apache.lucene.index.IndexReader.docFreq(IndexReader.java:882) at org.apache.lucene.index.DirectoryReader.docFreq(DirectoryReader.java:687) at org.apache.solr.search.SolrIndexReader.docFreq(SolrIndexReader.java:305) at org.apache.lucene.search.IndexSearcher.docFreq(IndexSearcher.java:136) at org.apache.lucene.search.Similarity.idfExplain(Similarity.java:804) at org.apache.lucene.search.PhraseQuery$PhraseWeight.<init>(PhraseQuery.java:150) at org.apache.lucene.search.PhraseQuery.createWeight(PhraseQuery.java:321) at org.apache.lucene.search.Query.weight(Query.java:101) at org.apache.lucene.search.Searcher.createWeight(Searcher.java:147) at org.apache.lucene.search.Searcher.search(Searcher.java:88) at org.apache.solr.search.SolrIndexSearcher.getDocListNC(SolrIndexSearcher.java:1388) at org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:1284) at org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:343) at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java: ...
with lucene-2239, i found NIOFs would throw ClosedChannelException.
see https://issues.apache.org/jira/browse/LUCENE-2239