Ran CheckIndex and it reported fine... Little bit of digging and found issue in application code.
We cache few data-blocks returned from IndexInput & there was an issue in reading with that. Corrected it now & things are running fine... Apologies for the false alarm -- Ravi On Mon, Aug 8, 2016 at 1:41 PM, Robert Muir <rcm...@gmail.com> wrote: > Can you run checkindex and include the output? > > On Mon, Aug 8, 2016 at 2:36 AM, Ravikumar Govindarajan > <ravikumar.govindara...@gmail.com> wrote: > > For some of the segments we received the following exception during merge > > as well as search. They look to be corrupt [Lucene 4.6.1 & Sun JDK > > 1.7.0_55] > > > > Is this a known bug? Any help is much appreciated > > > > The offending line of code is in ForUtil.readBlock() method... > > > > *final int encodedSize = encodedSizes[numBits];* > > > > java.lang.ArrayIndexOutOfBoundsException: 34 at > > org.apache.lucene.codecs.lucene41.ForUtil.readBlock(ForUtil.java:201) at > > org.apache.lucene.codecs.lucene41.Lucene41PostingsReader$Blo > ckDocsEnum.refillDocs(Lucene41PostingsReader.java:411) > > at > > org.apache.lucene.codecs.lucene41.Lucene41PostingsReader$Blo > ckDocsEnum.advance(Lucene41PostingsReader.java:536) > > at org.apache.lucene.search.TermScorer.advance(TermScorer.java:85) at > > org.apache.lucene.search.ConjunctionScorer.doNext(Conjunctio > nScorer.java:82) > > at > > org.apache.lucene.search.ConjunctionScorer.nextDoc(Conjuncti > onScorer.java:100) > > at > > org.apache.lucene.search.ConjunctionScorer.nextDoc(Conjuncti > onScorer.java:99) > > at org.apache.lucene.search.Scorer.score(Scorer.java:64) > > > > The numBits value also looks to be varied across different corrupt > segments > > > > -- > > Ravi > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > >