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

NPE in ExpandComponent

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 8.4
    • None

    Description

      Truncated Stack trace

      Caused by: java.lang.NullPointerException
      	at org.apache.lucene.util.BytesRef.compareTo(BytesRef.java:162)
      	at org.apache.lucene.util.BytesRef.compareTo(BytesRef.java:36)
      	at java.base/java.util.Comparators$NaturalOrderComparator.compare(Comparators.java:52)
      	at java.base/java.util.Comparators$NaturalOrderComparator.compare(Comparators.java:47)
      	at org.apache.lucene.util.ArrayTimSorter.compare(ArrayTimSorter.java:48)
      	at org.apache.lucene.util.TimSorter.nextRun(TimSorter.java:109)
      	at org.apache.lucene.util.TimSorter.sort(TimSorter.java:201)
      	at org.apache.lucene.util.ArrayUtil.timSort(ArrayUtil.java:452)
      	at org.apache.lucene.util.ArrayUtil.timSort(ArrayUtil.java:471)
      	at org.apache.lucene.util.ArrayUtil.timSort(ArrayUtil.java:479)
      	at org.apache.lucene.search.TermInSetQuery.<init>(TermInSetQuery.java:85)
      	at org.apache.lucene.search.TermInSetQuery.<init>(TermInSetQuery.java:107)
      	at org.apache.solr.handler.component.ExpandComponent.getGroupQuery(ExpandComponent.java:746)
      	at org.apache.solr.handler.component.ExpandComponent.process(ExpandComponent.java:330)
      	at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:328)
      	at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:198)
      	at org.apache.solr.core.SolrCore.execute(SolrCore.java:2583)
      	at org.apache.solr.util.TestHarness.query(TestHarness.java:339)
      	at org.apache.solr.util.TestHarness.query(TestHarness.java:321)
      	at org.apache.solr.SolrTestCaseJ4.assertQ(SolrTestCaseJ4.java:972)
      

      This could happen when expand component is used without collapse and docs returned have fewer unique values

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            munendrasn Munendra S N
            munendrasn Munendra S N
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment