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

CLUSTERSTATUS shards parameter does not accept comma delimited list

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1.0, 7.2, 7.2.1, 8.0
    • 7.3, 8.0
    • documentation

    Description

      According to the documentation for the Collections API, the CLUSTERSTATUS action should accept a comma delimited list of shards if specified. However, when specifying a comma delimited list, it is treated as a single value instead of being parsed into multiple values.

      The request

      .../collections?action=CLUSTERSTATUS&collection=test_collection&shard=shard1,shard2

      yields the response:

      {"responseHeader":\{"status":400,"QTime":5}

      ,"error":{"metadata":["error-class","org.apache.solr.common.SolrException","root-error-class","org.apache.solr.common.SolrException"],"msg":"Collection: test_collection shard: shard1,shard2 not found","code":400}}
      instead of locating both shard1 and shard2.

      Attachments

        1. SOLR-11950.patch
          3 kB
          Chris Ulicny

        Activity

          People

            gerlowskija Jason Gerlowski
            eculicny Chris Ulicny
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: