Solr
  1. Solr
  2. SOLR-5204

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.4
    • Fix Version/s: 4.7, 6.0
    • Component/s: None
    • Labels:
      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)
        
      1. SOLR-5204.patch
        5 kB
        Shalin Shekhar Mangar

        Activity

        Hide
        Shalin Shekhar Mangar added a comment -

        Yes, shards.tolerant is supported only in facet, query and grouping only. Stats or spellcheck do not support this param yet.

        Show
        Shalin Shekhar Mangar added a comment - Yes, shards.tolerant is supported only in facet, query and grouping only. Stats or spellcheck do not support this param yet.
        Hide
        André Bois-Crettez added a comment -

        It seems similar to SOLR-3369, is that right ?

        Show
        André Bois-Crettez added a comment - It seems similar to SOLR-3369 , is that right ?
        Hide
        Shalin Shekhar Mangar added a comment -

        Adding support for shards.tolerant in StatsComponent and SpellCheckComponent. Added tests in TestDistributedSearch as well.

        Show
        Shalin Shekhar Mangar added a comment - Adding support for shards.tolerant in StatsComponent and SpellCheckComponent. Added tests in TestDistributedSearch as well.
        Hide
        ASF subversion and git services added a comment -

        Commit 1546819 from shalin@apache.org in branch 'dev/trunk'
        [ https://svn.apache.org/r1546819 ]

        SOLR-5204: StatsComponent and SpellCheckComponent do not support the shards.tolerant=true parameter

        Show
        ASF subversion and git services added a comment - Commit 1546819 from shalin@apache.org in branch 'dev/trunk' [ https://svn.apache.org/r1546819 ] SOLR-5204 : StatsComponent and SpellCheckComponent do not support the shards.tolerant=true parameter
        Hide
        ASF subversion and git services added a comment -

        Commit 1546820 from shalin@apache.org in branch 'dev/branches/branch_4x'
        [ https://svn.apache.org/r1546820 ]

        SOLR-5204: StatsComponent and SpellCheckComponent do not support the shards.tolerant=true parameter

        Show
        ASF subversion and git services added a comment - Commit 1546820 from shalin@apache.org in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1546820 ] SOLR-5204 : StatsComponent and SpellCheckComponent do not support the shards.tolerant=true parameter
        Hide
        Shalin Shekhar Mangar added a comment -

        Thanks Anca!

        Show
        Shalin Shekhar Mangar added a comment - Thanks Anca!

          People

          • Assignee:
            Shalin Shekhar Mangar
            Reporter:
            Anca Kopetz
          • Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development