lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From no...@apache.org
Subject [02/50] [abbrv] lucene-solr:master: SOLR-11234: TriggerListener registration bug.
Date Wed, 04 Oct 2017 08:24:54 GMT
SOLR-11234: TriggerListener registration bug.


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/64c480f3
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/64c480f3
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/64c480f3

Branch: refs/heads/master
Commit: 64c480f3e91ab8368ccc59a233e9930ee057c433
Parents: 5c691d4
Author: Andrzej Bialecki <ab@apache.org>
Authored: Mon Aug 14 16:10:37 2017 +0200
Committer: Andrzej Bialecki <ab@apache.org>
Committed: Mon Aug 14 16:10:37 2017 +0200

----------------------------------------------------------------------
 .../java/org/apache/solr/cloud/autoscaling/AutoScalingHandler.java | 2 +-
 .../org/apache/solr/cloud/autoscaling/SystemLogListenerTest.java   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/64c480f3/solr/core/src/java/org/apache/solr/cloud/autoscaling/AutoScalingHandler.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/cloud/autoscaling/AutoScalingHandler.java
b/solr/core/src/java/org/apache/solr/cloud/autoscaling/AutoScalingHandler.java
index b16e9b4..abd85cf 100644
--- a/solr/core/src/java/org/apache/solr/cloud/autoscaling/AutoScalingHandler.java
+++ b/solr/core/src/java/org/apache/solr/cloud/autoscaling/AutoScalingHandler.java
@@ -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;
   }

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/64c480f3/solr/core/src/test/org/apache/solr/cloud/autoscaling/SystemLogListenerTest.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/cloud/autoscaling/SystemLogListenerTest.java
b/solr/core/src/test/org/apache/solr/cloud/autoscaling/SystemLogListenerTest.java
index c5536de..2f2da94 100644
--- a/solr/core/src/test/org/apache/solr/cloud/autoscaling/SystemLogListenerTest.java
+++ b/solr/core/src/test/org/apache/solr/cloud/autoscaling/SystemLogListenerTest.java
@@ -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);


Mime
View raw message