eagle-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jinh...@apache.org
Subject incubator-eagle git commit: [EAGLE-814] fix alertId is null in AlertStreamEvent bug
Date Tue, 29 Nov 2016 10:32:18 GMT
Repository: incubator-eagle
Updated Branches:
  refs/heads/master 285524efb -> ff2253754


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

Author: wujinhu <wujinhu920@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 <wujinhu920@126.com>
Authored: Tue Nov 29 18:32:06 2016 +0800
Committer: wujinhu <wujinhu920@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);


Mime
View raw message