mirror of https://github.com/apache/lucene.git
SOLR-11234: TriggerListener registration bug.
This commit is contained in:
parent
5c691d4542
commit
64c480f3e9
|
@ -556,7 +556,7 @@ public class AutoScalingHandler extends RequestHandlerBase implements Permission
|
||||||
properties.put(AutoScalingParams.TRIGGER, triggerName);
|
properties.put(AutoScalingParams.TRIGGER, triggerName);
|
||||||
properties.put(AutoScalingParams.STAGE, EnumSet.allOf(TriggerEventProcessorStage.class));
|
properties.put(AutoScalingParams.STAGE, EnumSet.allOf(TriggerEventProcessorStage.class));
|
||||||
AutoScalingConfig.TriggerListenerConfig listener =
|
AutoScalingConfig.TriggerListenerConfig listener =
|
||||||
new AutoScalingConfig.TriggerListenerConfig(CollectionAdminParams.SYSTEM_COLL, properties);
|
new AutoScalingConfig.TriggerListenerConfig(triggerName + CollectionAdminParams.SYSTEM_COLL, properties);
|
||||||
autoScalingConfig = autoScalingConfig.withTriggerListenerConfig(listener);
|
autoScalingConfig = autoScalingConfig.withTriggerListenerConfig(listener);
|
||||||
return autoScalingConfig;
|
return autoScalingConfig;
|
||||||
}
|
}
|
||||||
|
|
|
@ -105,7 +105,7 @@ public class SystemLogListenerTest extends SolrCloudTestCase {
|
||||||
// remove default listener
|
// remove default listener
|
||||||
String removeListenerCommand = "{\n" +
|
String removeListenerCommand = "{\n" +
|
||||||
"\t\"remove-listener\" : {\n" +
|
"\t\"remove-listener\" : {\n" +
|
||||||
"\t\t\"name\" : \".system\"\n" +
|
"\t\t\"name\" : \"node_lost_trigger.system\"\n" +
|
||||||
"\t}\n" +
|
"\t}\n" +
|
||||||
"}";
|
"}";
|
||||||
req = createAutoScalingRequest(SolrRequest.METHOD.POST, removeListenerCommand);
|
req = createAutoScalingRequest(SolrRequest.METHOD.POST, removeListenerCommand);
|
||||||
|
|
Loading…
Reference in New Issue