[ https://issues.apache.org/jira/browse/SOLR-12875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tim Underwood updated SOLR-12875: --------------------------------- Description: I'm seeing java.lang.ArrayIndexOutOfBoundsException exceptions for some requests when trying to make use of {noformat} uniqueBlock(_root_){noformat} within JSON Facets. Here are some example Stack Traces: {noformat} 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) {noformat} Here is another one at a different location in UniqueBlockAgg: {noformat} 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) {noformat} was: I'm seeing java.lang.ArrayIndexOutOfBoundsException exceptions for some requests when trying to make use of {noformat}uniqueBlock(_root_){noformat} within JSON Facets. Here are some example Stack Traces: {noformat} 2018-10-12 14:08:50.587 ERROR (qtp215078753-3353) [ x:opticat] 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) {noformat} Here is another one at a different location in UniqueBlockAgg: {noformat} 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) {noformat} > 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 > Priority: Major > > I'm seeing java.lang.ArrayIndexOutOfBoundsException exceptions for some > requests when trying to make use of > {noformat} > uniqueBlock(_root_){noformat} > within JSON Facets. > Here are some example Stack Traces: > {noformat} > 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) > {noformat} > > Here is another one at a different location in UniqueBlockAgg: > > {noformat} > 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) > {noformat} > > > > -- 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