You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eagle.apache.org by ji...@apache.org on 2016/11/29 10:32:18 UTC

incubator-eagle git commit: [EAGLE-814] fix alertId is null in AlertStreamEvent bug

Repository: incubator-eagle
Updated Branches:
  refs/heads/master 285524efb -> ff2253754


[EAGLE-814] fix alertId is null in AlertStreamEvent bug

Author: wujinhu <wu...@126.com>

Closes #698 from wujinhu/EAGLE-814.


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

Branch: refs/heads/master
Commit: ff2253754c265ffb81727a52b3e0f2f196697184
Parents: 285524e
Author: wujinhu <wu...@126.com>
Authored: Tue Nov 29 18:32:06 2016 +0800
Committer: wujinhu <wu...@126.com>
Committed: Tue Nov 29 18:32:06 2016 +0800

----------------------------------------------------------------------
 .../eagle/alert/engine/publisher/impl/AlertPublisherImpl.java       | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/ff225375/eagle-core/eagle-alert-parent/eagle-alert/alert-engine/src/main/java/org/apache/eagle/alert/engine/publisher/impl/AlertPublisherImpl.java
----------------------------------------------------------------------
diff --git a/eagle-core/eagle-alert-parent/eagle-alert/alert-engine/src/main/java/org/apache/eagle/alert/engine/publisher/impl/AlertPublisherImpl.java b/eagle-core/eagle-alert-parent/eagle-alert/alert-engine/src/main/java/org/apache/eagle/alert/engine/publisher/impl/AlertPublisherImpl.java
index bbb062b..5b902f9 100644
--- a/eagle-core/eagle-alert-parent/eagle-alert/alert-engine/src/main/java/org/apache/eagle/alert/engine/publisher/impl/AlertPublisherImpl.java
+++ b/eagle-core/eagle-alert-parent/eagle-alert/alert-engine/src/main/java/org/apache/eagle/alert/engine/publisher/impl/AlertPublisherImpl.java
@@ -82,6 +82,7 @@ public class AlertPublisherImpl implements AlertPublisher {
             LOG.warn("PublishPartition {} has problems while initializing publish plugin", partition);
             return;
         }
+        event.ensureAlertId();
         try {
             LOG.debug("Execute alert publisher {}", plugin.getClass().getCanonicalName());
             plugin.onAlert(event);