lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Varun Thacker (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SOLR-12424) Search trigger does not accept handler
Date Wed, 30 May 2018 03:01:00 GMT

     [ https://issues.apache.org/jira/browse/SOLR-12424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Varun Thacker updated SOLR-12424:
---------------------------------
    Description: 
This ref guide page ( [http://lucene.apache.org/solr/guide/7_3/solrcloud-autoscaling-triggers.html#search-rate-trigger] )
provides an example JSON for a search trigger.

If I post that on master I get the following error
{code:java}
ERROR - 2018-05-30 02:29:54.837; [   ] org.apache.solr.handler.RequestHandlerBase; org.apache.solr.api.ApiBag$ExceptionWithErrObject:
Error in command payload, errors: [{set-trigger={name=search_rate_trigger, event=searchRate,
collection=test, handler=/select, rate=100.0, waitFor=1m, enabled=true, actions=[{name=compute_plan,
class=solr.ComputePlanAction}, {name=execute_plan, class=solr.ExecutePlanAction}]}, errorMessages=[Error
validating trigger config search_rate_trigger: TriggerValidationException{name=search_rate_trigger,
details='{handler=unknown property}'}]}], 
 at org.apache.solr.cloud.autoscaling.AutoScalingHandler.processOps(AutoScalingHandler.java:210)
 at org.apache.solr.cloud.autoscaling.AutoScalingHandler.handleRequestBody(AutoScalingHandler.java:148)
 at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199)
 at org.apache.solr.servlet.HttpSolrCall.handleAdmin(HttpSolrCall.java:734)
 at org.apache.solr.servlet.HttpSolrCall.handleAdminRequest(HttpSolrCall.java:715)
 at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:496)
 at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:378)
 at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:324)
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1634)
 at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)
 at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
...{code}
>From the JSON payload if I remove the "handler" key it works. 

> Search trigger does not accept handler
> --------------------------------------
>
>                 Key: SOLR-12424
>                 URL: https://issues.apache.org/jira/browse/SOLR-12424
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Varun Thacker
>            Priority: Major
>
> This ref guide page ( [http://lucene.apache.org/solr/guide/7_3/solrcloud-autoscaling-triggers.html#search-rate-trigger] )
provides an example JSON for a search trigger.
> If I post that on master I get the following error
> {code:java}
> ERROR - 2018-05-30 02:29:54.837; [   ] org.apache.solr.handler.RequestHandlerBase; org.apache.solr.api.ApiBag$ExceptionWithErrObject:
Error in command payload, errors: [{set-trigger={name=search_rate_trigger, event=searchRate,
collection=test, handler=/select, rate=100.0, waitFor=1m, enabled=true, actions=[{name=compute_plan,
class=solr.ComputePlanAction}, {name=execute_plan, class=solr.ExecutePlanAction}]}, errorMessages=[Error
validating trigger config search_rate_trigger: TriggerValidationException{name=search_rate_trigger,
details='{handler=unknown property}'}]}], 
>  at org.apache.solr.cloud.autoscaling.AutoScalingHandler.processOps(AutoScalingHandler.java:210)
>  at org.apache.solr.cloud.autoscaling.AutoScalingHandler.handleRequestBody(AutoScalingHandler.java:148)
>  at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199)
>  at org.apache.solr.servlet.HttpSolrCall.handleAdmin(HttpSolrCall.java:734)
>  at org.apache.solr.servlet.HttpSolrCall.handleAdminRequest(HttpSolrCall.java:715)
>  at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:496)
>  at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:378)
>  at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:324)
>  at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1634)
>  at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)
>  at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
> ...{code}
> From the JSON payload if I remove the "handler" key it works. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message