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

On querying, IndexReader failed with AlreadyClosedException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.26.0, 1.22.3
    • Component/s: None
    • Labels:
      None

      Description

       This is an intermittent issue, where on querying the code throws AlreadyClosedException.

       

      Caused by: org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed
      	at org.apache.lucene.index.IndexReader.ensureOpen(IndexReader.java:262) [org.apache.jackrabbit.oak-lucene:1.10.2]
      	at org.apache.lucene.index.BaseCompositeReader.document(BaseCompositeReader.java:108) [org.apache.jackrabbit.oak-lucene:1.10.2]
      	at org.apache.lucene.index.IndexReader.document(IndexReader.java:446) [org.apache.jackrabbit.oak-lucene:1.10.2]
      	at org.apache.jackrabbit.oak.plugins.index.lucene.util.StatisticalSortedSetDocValuesFacetCounts.getAccessibleSampleCount(StatisticalSortedSetDocValuesFacetCounts.java:169) [org.apache.jackrabbit.oak-lucene:1.10.2]
      	at org.apache.jackrabbit.oak.plugins.index.lucene.util.StatisticalSortedSetDocValuesFacetCounts.getTopChildren0(StatisticalSortedSetDocValuesFacetCounts.java:104) [org.apache.jackrabbit.oak-lucene:1.10.2]
      	at org.apache.jackrabbit.oak.plugins.index.lucene.util.StatisticalSortedSetDocValuesFacetCounts.getTopChildren(StatisticalSortedSetDocValuesFacetCounts.java:70) [org.apache.jackrabbit.oak-lucene:1.10.2]
      	at org.apache.lucene.facet.MultiFacets.getTopChildren(MultiFacets.java:52) [org.apache.jackrabbit.oak-lucene:1.10.2]
      	at org.apache.jackrabbit.oak.plugins.index.lucene.LucenePropertyIndex$LuceneFacetProvider.getFacets(LucenePropertyIndex.java:1547) [org.apache.jackrabbit.oak-lucene:1.10.2]
      	at org.apache.jackrabbit.oak.plugins.index.search.spi.query.FulltextIndex$FulltextResultRow.getFacets(FulltextIndex.java:353) [org.apache.jackrabbit.oak-lucene:1.10.2]
      	at org.apache.jackrabbit.oak.plugins.index.search.spi.query.FulltextIndex$FulltextPathCursor$2.getValue(FulltextIndex.java:472) [org.apache.jackrabbit.oak-lucene:1.10.2]
      	... 237 common frames omitted
      

        Attachments

        1. OAK-8898-1.10.8.patch
          8 kB
          Thomas Mueller

          Issue Links

            Activity

              People

              • Assignee:
                mkataria Mohit Kataria
                Reporter:
                mkataria Mohit Kataria
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: