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

Updating a cluster policy fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 7.4, 8.0
    • AutoScaling
    • 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

            noble.paul Noble Paul
            varun Varun Thacker
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: