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

NPE calling export handler when useFilterForSortedQuery=true

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.2.1
    • Fix Version/s: None
    • Component/s: SolrCloud
    • Labels:
      None

      Description

      Updated: The stacktrace below was created when the solrconfig.xml has the following element:

       <useFilterForSortedQuery>true</useFilterForSortedQuery>
      

      It was determined that useFilterForSortedQuery is incompatible with the /export handler.

      See the comments near the end of the ticket for a potential work around if this flag needs to be set.

      Get NPE during calling export handler, here is the stack trace:
      at org.apache.lucene.util.BitSetIterator.<init>(BitSetIterator.java:58)
      at org.apache.solr.response.SortingResponseWriter.write(SortingResponseWriter.java:138)
      at org.apache.solr.response.QueryResponseWriterUtil.writeQueryResponse(QueryResponseWriterUtil.java:53)
      at org.apache.solr.servlet.HttpSolrCall.writeResponse(HttpSolrCall.java:727)
      at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:459)
      at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:227)
      at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:196)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181)
      at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285)
      at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88)
      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:159)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:567)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
      at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:489)
      at org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(AjpAprProtocol.java:452)
      at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2019)
      at java.lang.Thread.run(Thread.java:745)

      It seems there are some FixedBitSet was set to null

        Attachments

        1. SOLR-8291.patch
          3 kB
          Ron Ben-Yosef
        2. solr.log
          1.07 MB
          Ray

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                runiu Ray
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: