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

NPE when TimeAllowed exceeded with sorting

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 8.4.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      On Solr 8.4.1 I get a reproducible NPE when doing the type of query below, if the time allowed is exceeded:

      solr/mycollection/select?q=somefield:a*&sort=id asc&timeAllowed=10&fl=score

      For the exception to occur the query must be a distributed query (doesn't occur with distrib=false), a sort parameter must be specified and one of the fields returned must be score.

       

      I found a few other bug reports that might be the same issue:

      https://lucene.472066.n3.nabble.com/Null-pointer-exception-in-QueryComponent-MergeDds-method-td4460047.html

      https://lucene.472066.n3.nabble.com/NPE-on-exceeding-timeAllowed-on-SOLR-8-1-1-td4453239.html

       

      The stack trace is:

      java.lang.NullPointerException
      at org.apache.solr.handler.component.QueryComponent.mergeIds(QueryComponent.java:914)
      at org.apache.solr.handler.component.QueryComponent.handleRegularResponses(QueryComponent.java:613)
      at org.apache.solr.handler.component.QueryComponent.handleResponses(QueryComponent.java:592)
      at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:454)
      at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:211)
      at org.apache.solr.core.SolrCore.execute(SolrCore.java:2596)
      at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:799)
      at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:578)
      at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:419)
      at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:351)

       

      Related to SOLR-7987

       

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                uschindler Uwe Schindler
                Reporter:
                dan2097 Daniel Lowe
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: