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

Search trigger does not accept handler

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 7.4
    • AutoScaling
    • None

    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

      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)
      ...

      From the JSON payload if I remove the "handler" key it works. 

      Attachments

        Activity

          People

            Unassigned Unassigned
            varun Varun Thacker
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: