GitHub user RalphSu opened a pull request: https://github.com/apache/incubator-eagle/pull/510
[EAGLE-620]: AlertEngine: SpoutWrapper are sending duplicated message An event of stream id "ncAlertOutputStream" will be send three times given below spec: process.network.alerts: [ { topicName: "network_aggregate_alert_output_datasource", streamId: "ncAlertOutputStream", groupingStrategies: [ { partition: { streamId: "ncAlertOutputStream", type: "GROUPBY", columns: [ "entity" ] }, numTotalParticipatingRouterBolts: 4, startSequence: 0, totalTargetBoltIds: [ "streamRouterBolt0", "streamRouterBolt1", "streamRouterBolt2", "streamRouterBolt3" ] } ] }, { topicName: "network_aggregate_alert_output_datasource", streamId: "sherlockAlertOutputStream", groupingStrategies: [ { partition: { streamId: "sherlockAlertOutputStream", type: "GROUPBY", columns: [ "entity" ] }, numTotalParticipatingRouterBolts: 4, startSequence: 0, totalTargetBoltIds: [ "streamRouterBolt0", "streamRouterBolt1", "streamRouterBolt2", "streamRouterBolt3" ] } ] }, { topicName: "network_aggregate_alert_output_datasource", streamId: "correlatedAlertStream", groupingStrategies: [ { partition: { streamId: "correlatedAlertStream", type: "GROUPBY", columns: [ "linkedSwitch" ] }, numTotalParticipatingRouterBolts: 4, startSequence: 0, totalTargetBoltIds: [ "streamRouterBolt0", "streamRouterBolt1", "streamRouterBolt2", "streamRouterBolt3" ] } ] } ], The root cause is in SpoutOutputCollectorWrapper.emit() the streamId of group strategy is not compared with the given stream event. Author: ralphsu This closes You can merge this pull request into a Git repository by running: $ git pull https://github.com/RalphSu/incubator-eagle master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-eagle/pull/510.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #510 ---- commit 04f5572342560951737b2ed68e28e2ab3f59a08f Author: Ralph, Su <suliang...@gmail.com> Date: 2016-10-14T09:30:27Z [EAGLE-620]: AlertEngine: SpoutWrapper are sending duplicated message Author: ralphsu This closes ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---