Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-5743 Faceting with BlockJoin support
  3. SOLR-8644

ArrayIndexOutOfBoundsException in BlockJoinFieldFacetAccumulator

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.2, master (7.0)
    • Component/s: faceting
    • Labels:
      None

      Description

      Not sure I can provide any minimal example, but possibly it's easier to fix than describe.

      http://localhost:8983/solr/core0/bjqfacet?q={!parent+which%3Dtype_s:parent+v%3D$cq}&fq={!term+f%3DBRAND_s+tag%3Drbrand}Nike&facet=true&cq=type_s:child+AND+SIZE_s:XL&facet.field={!ex%3Drbrand}BRAND_s&child.facet.field=disp_clr
      
      java.lang.ArrayIndexOutOfBoundsException: 0
              at org.apache.solr.search.join.BlockJoinFieldFacetAccumulator$SortedIntsAggDocIterator.nextDoc(BlockJoinFieldFacetAccumulator.java:117)
              at org.apache.solr.search.join.BlockJoinFieldFacetAccumulator.updateCountsWithMatchedBlock(BlockJoinFieldFacetAccumulator.java:143)
              at org.apache.solr.search.join.BlockJoinFacetCollector.countFacets(BlockJoinFacetCollector.java:119)
              at org.apache.solr.search.join.BlockJoinFacetCollector.incrementFacets(BlockJoinFacetCollector.java:106)
              at org.apache.solr.search.join.BlockJoinFacetCollector.collect(BlockJoinFacetCollector.java:87)
              at org.apache.solr.search.SolrIndexSearcher.getDocSet(SolrIndexSearcher.java:1161)
      

      Again it only shows up in BlockJoinFacetComponent, not in BlockJoinDocSetFacetComponent

      The error is at bottom of result:

      <lst name="error"><str name="trace">java.lang.ArrayIndexOutOfBoundsException
      </str><int name="code">500</int></lst>
      
      1. SOLR-8644.patch
        2 kB
        Mikhail Khludnev
      2. SOLR-8644.patch
        1 kB
        Dr Oleg Savrasov

        Issue Links

          Activity

          Hide
          mkhludnev Mikhail Khludnev added a comment -

          Ilya Kasnacheev can you share the stack trace below the last line

            at org.apache.solr.search.SolrIndexSearcher.getDocSet(SolrIndexSearcher.java:1161)
          

          I wonder why it calculates docset?

          Show
          mkhludnev Mikhail Khludnev added a comment - Ilya Kasnacheev can you share the stack trace below the last line at org.apache.solr.search.SolrIndexSearcher.getDocSet(SolrIndexSearcher.java:1161) I wonder why it calculates docset?
          Hide
          osavrasov Dr Oleg Savrasov added a comment -

          The issue is reproduced with Unit test. It looks like BlockJoinFacetComponent conflicts with calculating exclusions defined for usual facet.

          Show
          osavrasov Dr Oleg Savrasov added a comment - The issue is reproduced with Unit test. It looks like BlockJoinFacetComponent conflicts with calculating exclusions defined for usual facet.
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 2c7d86bc4dd263a3cc29a3fb911e853060513db2 in lucene-solr's branch refs/heads/master from Mikhail Khludnev
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=2c7d86b ]

          SOLR-8644: Test asserts that block join facets work with parent level fq exclusions

          Show
          jira-bot ASF subversion and git services added a comment - Commit 2c7d86bc4dd263a3cc29a3fb911e853060513db2 in lucene-solr's branch refs/heads/master from Mikhail Khludnev [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=2c7d86b ] SOLR-8644 : Test asserts that block join facets work with parent level fq exclusions
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 082f36e0127dbf51c5575d4de42e432fcf0a1324 in lucene-solr's branch refs/heads/branch_6x from Mikhail Khludnev
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=082f36e ]

          SOLR-8644: Test asserts that block join facets work with parent level fq exclusions

          Show
          jira-bot ASF subversion and git services added a comment - Commit 082f36e0127dbf51c5575d4de42e432fcf0a1324 in lucene-solr's branch refs/heads/branch_6x from Mikhail Khludnev [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=082f36e ] SOLR-8644 : Test asserts that block join facets work with parent level fq exclusions
          Hide
          mikemccand Michael McCandless added a comment -

          Bulk close resolved issues after 6.2.0 release.

          Show
          mikemccand Michael McCandless added a comment - Bulk close resolved issues after 6.2.0 release.

            People

            • Assignee:
              mkhludnev Mikhail Khludnev
              Reporter:
              ilyak Ilya Kasnacheev
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development