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.STAGE, EnumSet.allOf(TriggerEventProcessorStage.class));
|
||||
AutoScalingConfig.TriggerListenerConfig listener =
|
||||
new AutoScalingConfig.TriggerListenerConfig(CollectionAdminParams.SYSTEM_COLL, properties);
|
||||
new AutoScalingConfig.TriggerListenerConfig(triggerName + CollectionAdminParams.SYSTEM_COLL, properties);
|
||||
autoScalingConfig = autoScalingConfig.withTriggerListenerConfig(listener);
|
||||
return autoScalingConfig;
|
||||
}
|
||||
|
|
|
@ -105,7 +105,7 @@ public class SystemLogListenerTest extends SolrCloudTestCase {
|
|||
// remove default listener
|
||||
String removeListenerCommand = "{\n" +
|
||||
"\t\"remove-listener\" : {\n" +
|
||||
"\t\t\"name\" : \".system\"\n" +
|
||||
"\t\t\"name\" : \"node_lost_trigger.system\"\n" +
|
||||
"\t}\n" +
|
||||
"}";
|
||||
req = createAutoScalingRequest(SolrRequest.METHOD.POST, removeListenerCommand);
|
||||
|
|
Loading…
Reference in New Issue