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

Queries with shards.tolerant=true and stats=true or spellcheck=on do not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.4
    • 4.7, 6.0
    • None
    • None

    Description

      In a SolrCloud environment with 2 shards, if one server is down :

      • when we execute queries with &shards.tolerant=true&stats=true, a NullPointerException is thrown
       
      java.lang.NullPointerException
          at org.apache.solr.handler.component.StatsComponent.handleResponses(StatsComponent.java:105)
          at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:311)
          at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
          at org.apache.solr.core.SolrCore.execute(SolrCore.java:1904)
          at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:659)
          at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:362)
          at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:158)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
          at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
          at java.lang.Thread.run(Thread.java:722)
      
      • when we execute queries with &shards.tolerant=true&spellcheck=on, a NullPointerException is thrown
        2013-08-26 13:51:42,347 [http-8080-8] ERROR org.apache.solr.servlet.SolrDispatchFilter:log:119  - null:java.lang.NullPointerException
            at org.apache.solr.handler.component.SpellCheckComponent.finishStage(SpellCheckComponent.java:323)
        

      Attachments

        1. SOLR-5204.patch
          5 kB
          Shalin Shekhar Mangar

        Activity

          People

            shalin Shalin Shekhar Mangar
            agh Anca Kopetz
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: