You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eagle.apache.org by ha...@apache.org on 2015/12/03 04:29:01 UTC

[3/5] incubator-eagle git commit: fix a typo in fetching alertConfigs

fix a typo in fetching alertConfigs


Project: http://git-wip-us.apache.org/repos/asf/incubator-eagle/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-eagle/commit/58a9555e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-eagle/tree/58a9555e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-eagle/diff/58a9555e

Branch: refs/heads/master
Commit: 58a9555e28894e707d0dad528758dceb2e08d20f
Parents: 3de5cce
Author: sunlibin <ab...@gmail.com>
Authored: Mon Nov 30 13:55:21 2015 +0800
Committer: sunlibin <ab...@gmail.com>
Committed: Mon Nov 30 13:55:21 2015 +0800

----------------------------------------------------------------------
 .../java/org/apache/eagle/executor/AlertExecutorCreationUtils.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/58a9555e/eagle-core/eagle-alert/eagle-alert-process/src/main/java/org/apache/eagle/executor/AlertExecutorCreationUtils.java
----------------------------------------------------------------------
diff --git a/eagle-core/eagle-alert/eagle-alert-process/src/main/java/org/apache/eagle/executor/AlertExecutorCreationUtils.java b/eagle-core/eagle-alert/eagle-alert-process/src/main/java/org/apache/eagle/executor/AlertExecutorCreationUtils.java
index c073939..6f7b69a 100644
--- a/eagle-core/eagle-alert/eagle-alert-process/src/main/java/org/apache/eagle/executor/AlertExecutorCreationUtils.java
+++ b/eagle-core/eagle-alert/eagle-alert-process/src/main/java/org/apache/eagle/executor/AlertExecutorCreationUtils.java
@@ -102,7 +102,7 @@ public class AlertExecutorCreationUtils {
         String alertExecutorConfigsKey = "alertExecutorConfigs";
         if(config.hasPath(alertExecutorConfigsKey)) {
             Map<String, ConfigValue> alertExecutorConfigs = config.getObject(alertExecutorConfigsKey);
-            if(alertExecutorConfigs !=null && alertExecutorConfigs.containsKey(alertExecutorConfigs)) {
+            if(alertExecutorConfigs !=null && alertExecutorConfigs.containsKey(alertExecutorId)) {
                 Map<String, Object> alertExecutorConfig = (Map<String, Object>) alertExecutorConfigs.get(alertExecutorId).unwrapped();
                 int parts = 0;
                 if(alertExecutorConfig.containsKey("parallelism")) parts = (int) (alertExecutorConfig.get("parallelism"));