Repository: incubator-eagle Updated Branches: refs/heads/master 285524efb -> ff2253754
[EAGLE-814] fix alertId is null in AlertStreamEvent bug Author: wujinhu <wujinhu...@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 <wujinhu...@126.com> Authored: Tue Nov 29 18:32:06 2016 +0800 Committer: wujinhu <wujinhu...@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);