[ https://issues.apache.org/jira/browse/EAGLE-475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15426939#comment-15426939 ]
ASF GitHub Bot commented on EAGLE-475: -------------------------------------- Github user pkuwm commented on a diff in the pull request: https://github.com/apache/incubator-eagle/pull/359#discussion_r75359890 --- Diff: eagle-core/eagle-alert-parent/eagle-alert/alert-engine/src/main/java/org/apache/eagle/alert/engine/runner/AlertBolt.java --- @@ -111,9 +111,12 @@ public void execute(Tuple input) { pe.getEvent().setMetaVersion(specVersion); } // check if specVersion is older than stream_event_version - else if (specVersion != null && stream_event_version != null && specVersion.contains("spec_version_") && specVersion.contains("spec_version_")){ - Long timestamp_of_specVersion = Long.valueOf(specVersion.split("spec_version_")[1]); - Long timestamp_of_streamEventVersion = Long.valueOf(stream_event_version.split("spec_version_")[1]); + else if (specVersion != null && stream_event_version != null && + specVersion.contains("spec_version_") && stream_event_version.contains("spec_version_")){ +// Long timestamp_of_specVersion = Long.valueOf(specVersion.split("spec_version_")[1]); +// Long timestamp_of_streamEventVersion = Long.valueOf(stream_event_version.split("spec_version_")[1]); + Long timestamp_of_specVersion = Long.valueOf(specVersion.substring(13)); --- End diff -- What I got for "specVersion" is "spec_version_1471478137249". split[1] would be out of array index. So I just substring the timestamp. > Fix generic email publisher and publish emails for absence alert. > ----------------------------------------------------------------- > > Key: EAGLE-475 > URL: https://issues.apache.org/jira/browse/EAGLE-475 > Project: Eagle > Issue Type: Bug > Affects Versions: v0.5.0 > Reporter: Huizhi Lu > Assignee: Huizhi Lu > Fix For: v0.5.0 > > > 1) Absence alerts could not be published via emails. > Root cause: in AbsencePolicyHandler, alert stream events were not emitted to > alert bolt. > Solution: collect alert stream events and emit them to alert bolt. > 2) Email publisher did not work. > Root cause: Email configurations were incorrect. > Solution: correct the email configurations and add email authentications. -- This message was sent by Atlassian JIRA (v6.3.4#6332)