" : "execute_plan", > "class": "solr.ExecutePlanAction" > } > ] > } > }' > Note the same policy(2,3) not working in 7.4 > Errors: > {code:java} > [Mon Apr 08 11:52:00 UTC root@hawkeye-common ~]# curl > http://localhost:8983/solr/admin/autoscaling -H > 'Content-type:application/json' -d '{ > > "set-trigger": { > > "name" : "node_added_trigger", > > "event" : "nodeAdded", > > "waitFor" : "5s", > > "preferredOperation": "ADDREPLICA", > > "enabled" : true, > > "actions" : [ > > { > > "name" : "compute_plan", > > "class": "solr.ComputePlanAction" > > }, > > { > > "name" : "execute_plan", > > "class": "solr.ExecutePlanAction" > > } > > ] > > } > > }' > { > "responseHeader":{ > "status":400, > "QTime":5}, > "result":"failure", > "WARNING":"This response format is experimental. It is likely to change in > the future.", > "error":{ > "metadata":[ > "error-class","org.apache.solr.api.ApiBag$ExceptionWithErrObject", > "root-error-class","org.apache.solr.api.ApiBag$ExceptionWithErrObject"], > "details":[{ > "set-trigger":{ > "name":"node_added_trigger", > "event":"nodeAdded", > "waitFor":"5s", > "preferredOperation":"ADDREPLICA", > "enabled":true, > "actions":[{ > "name":"compute_plan", > "class":"solr.ComputePlanAction"}, > { > "name":"execute_plan", > "class":"solr.ExecutePlanAction"}]}, > "errorMessages":["Error validating trigger config node_added_trigger: > TriggerValidationException{name=node_added_trigger, > details='{preferredOperation=unknown property}'}"]}], > "msg":"Error in command payload", > "code":400}} > [Mon Apr 08 11:52:09 UTC root@hawkeye-common ~]# > [Mon Apr 08 11:52:16 UTC root@hawkeye-common ~]# curl > http://localhost:8983/solr/admin/autoscaling -H > 'Content-type:application/json' -d '{ > > "set-trigger": { > > "name" : "node_lost_trigger", > > "event" : "nodeLost", > > "waitFor" : "5s", > > "preferredOperation": "DELETENODE", > > "enabled" : true, > > "actions" : [ > > { > > "name" : "compute_plan", > > "class": "solr.ComputePlanAction" > > }, > > { > > "name" : "execute_plan", > > "class": "solr.ExecutePlanAction" > > } > > ] > > } > > }' > { > "responseHeader":{ > "status":400, > "QTime":1}, > "result":"failure", > "WARNING":"This response format is experimental. It is likely to change in > the future.", > "error":{ > "metadata":[ > "error-class","org.apache.solr.api.ApiBag$ExceptionWithErrObject", > "root-error-class","org.apache.solr.api.ApiBag$ExceptionWithErrObject"], > "details":[{ > "set-trigger":{ > "name":"node_lost_trigger", > "event":"nodeLost", > "waitFor":"5s", > "preferredOperation":"DELETENODE", > "enabled":true, > "actions":[{ > "name":"compute_plan", > "class":"solr.ComputePlanAction"}, > { > "name":"execute_plan", > "class":"solr.ExecutePlanAction"}]}, > "errorMessages":["Error validating trigger config node_lost_trigger: > TriggerValidationException{name=node_lost_trigger, > details='{preferredOperation=unknown property}'}"]}], > "msg":"Error in command payload", > "code":400}} > {code} > if any new sever added into that cluster the data(collection) must be added > as a replica in that cluster.[AddReplica Automatically added in version 7.5] > https://i.stack.imgur.com/DgEbL.png > Kindly help me to resolve this case. > I need a exact trigger which will perform a AutoAddReplica Action
-- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org