Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
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