Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.1, master (8.0)
    • Component/s: SolrCloud
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:

      Description

      Implement set-listener and remove-listener API to listen to various lifecycle stages of a trigger.

      The set-listeners API can be invoked to add a listener to any trigger at any stage of its execution. The parameters are :

      • ‘name’ - a unique string identifying the listener so that it can be read, updated and removed
      • ‘trigger’ - the name of the trigger to listen to
      • ‘stage’ - the stage of the trigger (multiple values can be specified as an array of strings), possible values are:
        • STARTED,
        • ABORTED,
        • FAILED,
        • SUCCEEDED
      • ‘beforeAction’ - the action name before which the listener should be notified. Multiple values can be specified as an array of strings.
      • ‘afterAction’ - the action name after which the listener should be notified. Multiple values can be specified as an array of strings
      • ‘class’ - an implementation of ‘TriggerListener’ class
      • Other parameters depend on the listener class

      An example invocation of this API is:

      curl -H 'Content-type:application/json' -d '{
          “set-listener” : 
      		{
      			“name” : “xyz”,
      			“trigger” : “node_lost_trigger”,
      			“stage” : [“STARTED”,”ABORTED”,”SUCCEEDED”],
      			“beforeAction” : “execute_plan”,
      			“class” : “solr.HttpCallback”,
      			“url” : “http://xyz.com/on_node_lost?node={$LOST_NODE_NAME}”	
      }' http://localhost:8983/solr/admin/cluster
      

        Attachments

        1. SOLR-10340.patch
          22 kB
          Shalin Shekhar Mangar
        2. SOLR-10340.patch
          22 kB
          Shalin Shekhar Mangar

          Activity

            People

            • Assignee:
              shalinmangar Shalin Shekhar Mangar
              Reporter:
              shalinmangar Shalin Shekhar Mangar
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: