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

Collections API COLSTATUS does not check live_nodes when reporting replica's status

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 8.4
    • None
    • None

    Description

      The COLSTATUS command will report all replicas as "active" even when the node is not in live_nodes.

      To reproduce:

      • Start two Solr instances
      • create a collection with replicas on both
      • issue a "kill -9" to one of the Solr instances.
      • issue the COLSTATUS command

      Result:

      {
       "responseHeader":{
         "status":0,
         "QTime":7},
         "gettingstarted":{
           "stateFormat":2,
           "znodeVersion":15,
           "properties":{
              "autoAddReplicas":"false",
               "maxShardsPerNode":"-1",
              "nrtReplicas":"2",
              "pullReplicas":"0",
              "replicationFactor":"2",
              "router":\{"name":"compositeId"},
              "tlogReplicas":"0"},
              "activeShards":2,
              "inactiveShards":0,
              "schemaNonCompliant":["(NONE)"],
              "shards":{
                 "shard1":{
                 "state":"active",
                 "range":"80000000-ffffffff",
                 "replicas":{
                     "total":2,
      #####          "active":2,
      #####          "down":0,
                     "recovering":0,
                    "recovery_failed":0},
      

      Attachments

        1. SOLR-13882.patch
          0.7 kB
          Erick Erickson

        Activity

          People

            ab Andrzej Bialecki
            erickerickson Erick Erickson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: