SOLR-14578: Update solrcloud-autoscaling-triggers.adoc and test (#1591)

* Update solrcloud-autoscaling-triggers.adoc
* fix the name of the execute_plan action in docs and test.
This commit is contained in:
Marcus 2020-06-25 14:50:50 -07:00 committed by GitHub
parent 11538e52a2
commit 31de01f0ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ public class AutoAddReplicasIntegrationTest extends SolrCloudTestCase {
new V2Request.Builder("/cluster/autoscaling")
.withMethod(SolrRequest.METHOD.POST)
.withPayload("{'set-trigger':{'name':'.auto_add_replicas','event':'nodeLost','waitFor':'5s','enabled':'true','actions':[{'name':'auto_add_replicas_plan','class':'solr.AutoAddReplicasPlanAction'},{'name':'auto_add_replicas_plan','class':'solr.ExecutePlanAction'}]}}")
.withPayload("{'set-trigger':{'name':'.auto_add_replicas','event':'nodeLost','waitFor':'5s','enabled':'true','actions':[{'name':'auto_add_replicas_plan','class':'solr.AutoAddReplicasPlanAction'},{'name':'execute_plan','class':'solr.ExecutePlanAction'}]}}")
.build()
.process(cluster.getSolrClient());
}

View File

@ -220,7 +220,7 @@ If you would like to change the value of `.autoAddReplicas` trigger, you need to
"class": "solr.AutoAddReplicasPlanAction"
},
{
"name": "auto_add_replicas_plan",
"name": "execute_plan",
"class": "solr.ExecutePlanAction"
}
]