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

NRTIndex can get closed while in use

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5.12, 1.6.0
    • Component/s: lucene
    • Labels:
      None

      Description

      With hybrid indexing enabled it can happen that NRTIndex gets closed while its in use

      2016-10-10 14:22:41,094 WARN  NA [Workflow Starter Thread] o.a.j.o.p.i.l.h.DocumentQueue - Error occurred while indexing index [/oak:index/hybridIndex] java.lang.IllegalStateException: null
      	at com.google.common.base.Preconditions.checkState(Preconditions.java:134)
      	at org.apache.jackrabbit.oak.plugins.index.lucene.hybrid.NRTIndex.createReader(NRTIndex.java:168)
      	at org.apache.jackrabbit.oak.plugins.index.lucene.hybrid.NRTIndex.getPrimaryReader(NRTIndex.java:87)
      	at org.apache.jackrabbit.oak.plugins.index.lucene.hybrid.NRTIndex.getReaders(NRTIndex.java:118)
      	at org.apache.jackrabbit.oak.plugins.index.lucene.IndexNode.getNRTReaders(IndexNode.java:200)
      	at org.apache.jackrabbit.oak.plugins.index.lucene.IndexNode.refreshReaders(IndexNode.java:172)
      	at org.apache.jackrabbit.oak.plugins.index.lucene.IndexNode.access$000(IndexNode.java:50)
      	at org.apache.jackrabbit.oak.plugins.index.lucene.IndexNode$1.run(IndexNode.java:84)
      	at org.apache.jackrabbit.oak.plugins.index.lucene.hybrid.RefreshOnWritePolicy.refreshOnWriteIfRequired(RefreshOnWritePolicy.java:41)
      	at org.apache.jackrabbit.oak.plugins.index.lucene.IndexNode.refreshReadersOnWriteIfRequired(IndexNode.java:168)
      	at org.apache.jackrabbit.oak.plugins.index.lucene.hybrid.DocumentQueue.processDocs(DocumentQueue.java:210)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                chetanm Chetan Mehrotra
                Reporter:
                chetanm Chetan Mehrotra
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: