lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ravikumar Govindarajan <ravikumar.govindara...@gmail.com>
Subject Re: Segment Corruption - ForUtil.readBlock AIOBE
Date Tue, 09 Aug 2016 07:30:05 GMT
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 <rcmuir@gmail.com> wrote:

> Can you run checkindex and include the output?
>
> On Mon, Aug 8, 2016 at 2:36 AM, Ravikumar Govindarajan
> <ravikumar.govindarajan@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-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

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