Solr
  1. Solr
  2. SOLR-6223

SearchComponents may throw NPE when using shards.tolerant and there is a failure in the “GET_FIELDS/GET_HIGHLIGHTS/GET_DEBUG” phase

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.9, Trunk
    • Fix Version/s: 4.10, Trunk
    • Component/s: None
    • Labels:
      None

      Description

      I found that, when using shards.tolerant, if there is some kind of exception in the second phase of the search, some component’s throw NPE.
      I found it with the QueryComponent first, but then saw that other components would suffer in the same way: DebugComponent, HighlightComponent and MLTComponent. I only checked the components of the default chain.

      1. SOLR-6223.patch
        20 kB
        Tomás Fernández Löbbe

        Issue Links

          Activity

          Hide
          ASF subversion and git services added a comment -

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

          SOLR-6223: SearchComponents may throw NPE when using shards.tolerant and there is a failure in the 'GET_FIELDS/GET_HIGHLIGHTS/GET_DEBUG' phase

          Show
          ASF subversion and git services added a comment - Commit 1607897 from shalin@apache.org in branch 'dev/trunk' [ https://svn.apache.org/r1607897 ] SOLR-6223 : SearchComponents may throw NPE when using shards.tolerant and there is a failure in the 'GET_FIELDS/GET_HIGHLIGHTS/GET_DEBUG' phase
          Hide
          ASF subversion and git services added a comment -

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

          SOLR-6223: SearchComponents may throw NPE when using shards.tolerant and there is a failure in the 'GET_FIELDS/GET_HIGHLIGHTS/GET_DEBUG' phase

          Show
          ASF subversion and git services added a comment - Commit 1607899 from shalin@apache.org in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1607899 ] SOLR-6223 : SearchComponents may throw NPE when using shards.tolerant and there is a failure in the 'GET_FIELDS/GET_HIGHLIGHTS/GET_DEBUG' phase
          Hide
          Shalin Shekhar Mangar added a comment -

          Thanks Tomás!

          Show
          Shalin Shekhar Mangar added a comment - Thanks Tomás!

            People

            • Assignee:
              Shalin Shekhar Mangar
              Reporter:
              Tomás Fernández Löbbe
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development