Tim Underwood created SOLR-12875: ------------------------------------ Summary: ArrayIndexOutOfBoundsException when using uniqueBlock(_root_) in JSON Facets Key: SOLR-12875 URL: https://issues.apache.org/jira/browse/SOLR-12875 Project: Solr Issue Type: Bug Security Level: Public (Default Security Level. Issues are Public) Components: Facet Module Affects Versions: 7.5 Reporter: Tim Underwood
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-11 17:28:41.887 ERROR (qtp215078753-1377) [ x:opticat] o.a.s.h.RequestHandlerBase java.lang.ArrayIndexOutOfBoundsException: Index 6 out of bounds for length 4}} {{ 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)}} Here is another one at a different location in UniqueBlockAgg: {{2018-10-12 21:37:57.322 ERROR (qtp215078753-4072) [ x:opticat] 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)}} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org