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

Updating a cluster policy fails

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.4, 8.0
    • Component/s: AutoScaling
    • Labels:
      None

      Description

      If I create a policy like this

      curl -X POST -H 'Content-type:application/json' --data-binary '{
      "set-cluster-policy": [
      {"cores": "<4","node": "#ANY"}
      ]
      }' http://localhost:8983/solr/admin/autoscaling

      Then I can never update this policy subsequently .

      To reproduce try changing the policy to 

      curl -X POST -H 'Content-type:application/json' --data-binary '{
      "set-cluster-policy": [
      {"cores": "<3","node": "#ANY"}
      ]
      }' http://localhost:8983/solr/admin/autoscaling

      The policy will never change. The workaround is to clear the policy by sending an empty array and then re-creating it 

        Attachments

          Activity

            People

            • Assignee:
              noble.paul Noble Paul
              Reporter:
              varunthacker Varun Thacker
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: