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

strengthen ScheduledTrigger's preferredOperation parameter validation

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: master (9.0), 8.2
    • Component/s: AutoScaling
    • Labels:
      None

      Description

      Currently a typo such as (say) MOVE_REPLICA instead of the correct MOVEREPLICA results in a "success" response for the "set-trigger" call but in the Solr logs NullPointerException stuff is happening e.g.

        "eventType":"SCHEDULED",
        "properties":{
          "actualEventTime":...,
          "preferredOperation":"MOVE_REPLICA",
          "_enqueue_time_":...}}
              at org.apache.solr.cloud.autoscaling.ComputePlanAction.process(ComputePlanAction.java:160) ~[?:?]
              at org.apache.solr.cloud.autoscaling.ScheduledTriggers.lambda$null$3(ScheduledTriggers.java:324) ~[?:?]
              ... 6 more
      Caused by: java.lang.NullPointerException
              at org.apache.solr.client.solrj.cloud.autoscaling.Policy$Session.getSuggester(Policy.java:628) ~[?:?]
              at org.apache.solr.cloud.autoscaling.ComputePlanAction.getSuggester(ComputePlanAction.java:262) ~[?:?]
              at org.apache.solr.cloud.autoscaling.ComputePlanAction.process(ComputePlanAction.java:97) ~[?:?]
              at org.apache.solr.cloud.autoscaling.ScheduledTriggers.lambda$null$3(ScheduledTriggers.java:324) ~[?:?]
              ... 6 more
      

      Proposed patch to follow.

        Attachments

        1. SOLR-13280.patch
          1 kB
          Christine Poerschke

          Activity

            People

            • Assignee:
              cpoerschke Christine Poerschke
              Reporter:
              cpoerschke Christine Poerschke
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: