Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-12875

ArrayIndexOutOfBoundsException when using uniqueBlock(_root_) in JSON Facets

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.5
    • Fix Version/s: 7.6, 8.0
    • Component/s: Facet Module
    • Labels:
      None

      Description

      I'm seeing java.lang.ArrayIndexOutOfBoundsException exceptions for some requests when trying to make use of

      uniqueBlock(_root_)

      within JSON Facets.

      Here are some example Stack Traces:

      2018-10-12 14:08:50.587 ERROR (qtp215078753-3353) [   x:my_core] o.a.s.s.HttpSolrCall null:java.lang.ArrayIndexOutOfBoundsException: Index 13 out of bounds for length 8
              at org.apache.solr.search.facet.UniqueBlockAgg$UniqueBlockSlotAcc.collectOrdToSlot(UniqueBlockAgg.java:40)
              at org.apache.solr.search.facet.UniqueSinglevaluedSlotAcc.collect(UniqueSinglevaluedSlotAcc.java:85)
              at org.apache.solr.search.facet.FacetFieldProcessor.collectFirstPhase(FacetFieldProcessor.java:243)
              at org.apache.solr.search.facet.FacetFieldProcessorByHashDV.collectValFirstPhase(FacetFieldProcessorByHashDV.java:432)
              at org.apache.solr.search.facet.FacetFieldProcessorByHashDV.access$100(FacetFieldProcessorByHashDV.java:50)
              at org.apache.solr.search.facet.FacetFieldProcessorByHashDV$5.collect(FacetFieldProcessorByHashDV.java:395)
              at org.apache.solr.search.DocSetUtil.collectSortedDocSet(DocSetUtil.java:284)
              at org.apache.solr.search.facet.FacetFieldProcessorByHashDV.collectDocs(FacetFieldProcessorByHashDV.java:376)
              at org.apache.solr.search.facet.FacetFieldProcessorByHashDV.calcFacets(FacetFieldProcessorByHashDV.java:247)
              at org.apache.solr.search.facet.FacetFieldProcessorByHashDV.process(FacetFieldProcessorByHashDV.java:214)
              at org.apache.solr.search.facet.FacetRequest.process(FacetRequest.java:368)
              at org.apache.solr.search.facet.FacetProcessor.processSubs(FacetProcessor.java:472)
              at org.apache.solr.search.facet.FacetProcessor.fillBucket(FacetProcessor.java:429)
              at org.apache.solr.search.facet.FacetQueryProcessor.process(FacetQuery.java:64)
              at org.apache.solr.search.facet.FacetRequest.process(FacetRequest.java:368)
              at org.apache.solr.search.facet.FacetModule.process(FacetModule.java:139)
              at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:298)
              at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199)
      

       

      Here is another one at a different location in UniqueBlockAgg:
       

      2018-10-12 21:37:57.322 ERROR (qtp215078753-4072) [   x:my_core] o.a.s.h.RequestHandlerBase java.lang.ArrayIndexOutOfBoundsException: Index 23 out of bounds for length 16
              at org.apache.solr.search.facet.UniqueBlockAgg$UniqueBlockSlotAcc.getValue(UniqueBlockAgg.java:59)
              at org.apache.solr.search.facet.SlotAcc.setValues(SlotAcc.java:146)
              at org.apache.solr.search.facet.FacetFieldProcessor.fillBucket(FacetFieldProcessor.java:431)
              at org.apache.solr.search.facet.FacetFieldProcessor.findTopSlots(FacetFieldProcessor.java:381)
              at org.apache.solr.search.facet.FacetFieldProcessorByHashDV.calcFacets(FacetFieldProcessorByHashDV.java:249)
              at org.apache.solr.search.facet.FacetFieldProcessorByHashDV.process(FacetFieldProcessorByHashDV.java:214)
              at org.apache.solr.search.facet.FacetRequest.process(FacetRequest.java:368)
              at org.apache.solr.search.facet.FacetProcessor.processSubs(FacetProcessor.java:472)
              at org.apache.solr.search.facet.FacetProcessor.fillBucket(FacetProcessor.java:429)
              at org.apache.solr.search.facet.FacetQueryProcessor.process(FacetQuery.java:64)
              at org.apache.solr.search.facet.FacetRequest.process(FacetRequest.java:368)
              at org.apache.solr.search.facet.FacetModule.process(FacetModule.java:139)
              at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:298)
              at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199)
      

       

       

       

       

        Attachments

        1. SOLR-12875.patch
          5 kB
          Mikhail Khludnev

          Issue Links

            Activity

              People

              • Assignee:
                mkhl Mikhail Khludnev
                Reporter:
                tpunder Tim Underwood
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h