Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-1374

Async indexer fails on the SegmentMK

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.16
    • lucene, segmentmk
    • None

    Description

      On bigger installs (read CQ) I see the following error in the async indexer.
      It looks like it's related to reading binaries somehow.
      It doesn't appear to affect unit tests though.

      30.01.2014 11:23:32.115 *ERROR* [pool-8-thread-3] org.apache.sling.commons.scheduler.impl.QuartzScheduler Exception during job execution of org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate@13ba2bd : null
      java.lang.IllegalStateException: null
      	at com.google.common.base.Preconditions.checkState(Preconditions.java:134) ~[na:na]
      	at org.apache.jackrabbit.oak.plugins.segment.Segment.pos(Segment.java:199) ~[na:na]
      	at org.apache.jackrabbit.oak.plugins.segment.Segment.readByte(Segment.java:240) ~[na:na]
      	at org.apache.jackrabbit.oak.plugins.segment.SegmentBlob.getNewStream(SegmentBlob.java:49) ~[na:na]
      	at org.apache.jackrabbit.oak.plugins.index.lucene.OakDirectory$OakIndexFile.loadBlob(OakDirectory.java:172) ~[na:na]
      	at org.apache.jackrabbit.oak.plugins.index.lucene.OakDirectory$OakIndexFile.readBytes(OakDirectory.java:218) ~[na:na]
      	at org.apache.jackrabbit.oak.plugins.index.lucene.OakDirectory$OakIndexInput.readBytes(OakDirectory.java:297) ~[na:na]
      	at org.apache.jackrabbit.oak.plugins.index.lucene.OakDirectory$OakIndexInput.readByte(OakDirectory.java:303) ~[na:na]
      	at org.apache.lucene.store.DataInput.readInt(DataInput.java:84) ~[na:na]
      	at org.apache.lucene.codecs.CodecUtil.checkHeader(CodecUtil.java:126) ~[na:na]
      	at org.apache.lucene.codecs.lucene41.Lucene41PostingsReader.<init>(Lucene41PostingsReader.java:83) ~[na:na]
      	at org.apache.lucene.codecs.lucene41.Lucene41PostingsFormat.fieldsProducer(Lucene41PostingsFormat.java:430) ~[na:na]
      	at org.apache.lucene.codecs.perfield.PerFieldPostingsFormat$FieldsReader.<init>(PerFieldPostingsFormat.java:194) ~[na:na]
      	at org.apache.lucene.codecs.perfield.PerFieldPostingsFormat.fieldsProducer(PerFieldPostingsFormat.java:233) ~[na:na]
      	at org.apache.lucene.index.SegmentCoreReaders.<init>(SegmentCoreReaders.java:127) ~[na:na]
      	at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:56) ~[na:na]
      	at org.apache.lucene.index.ReadersAndLiveDocs.getReader(ReadersAndLiveDocs.java:121) ~[na:na]
      	at org.apache.lucene.index.BufferedDeletesStream.applyDeletes(BufferedDeletesStream.java:269) ~[na:na]
      	at org.apache.lucene.index.IndexWriter.applyAllDeletes(IndexWriter.java:2973) ~[na:na]
      	at org.apache.lucene.index.IndexWriter.maybeApplyDeletes(IndexWriter.java:2964) ~[na:na]
      	at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:2937) ~[na:na]
      	at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:2906) ~[na:na]
      	at org.apache.lucene.index.IndexWriter.closeInternal(IndexWriter.java:940) ~[na:na]
      	at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:895) ~[na:na]
      	at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:857) ~[na:na]
      	at org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditorContext.closeWriter(LuceneIndexEditorContext.java:161) ~[na:na]
      	at org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditor.leave(LuceneIndexEditor.java:117) ~[na:na]
      	at org.apache.jackrabbit.oak.spi.commit.VisibleEditor.leave(VisibleEditor.java:64) ~[na:na]
      	at org.apache.jackrabbit.oak.plugins.index.IndexUpdate.leave(IndexUpdate.java:135) ~[na:na]
      	at org.apache.jackrabbit.oak.spi.commit.EditorDiff.process(EditorDiff.java:56) ~[na:na]
      	at org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate.run(AsyncIndexUpdate.java:143) ~[na:na]
      	at org.apache.sling.commons.scheduler.impl.QuartzJobExecutor.execute(QuartzJobExecutor.java:105) ~[org.apache.sling.commons.scheduler-2.4.2.jar:na]
      	at org.quartz.core.JobRunShell.run(JobRunShell.java:207) [org.apache.sling.commons.scheduler-2.4.2.jar:na]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_40]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_40]
      	at java.lang.Thread.run(Thread.java:724) [na:1.7.0_40]
      

      Attachments

        Activity

          People

            stillalex Alex Deparvu
            stillalex Alex Deparvu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: