[ https://issues.apache.org/jira/browse/EAGLE-620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15574795#comment-15574795 ]
ASF GitHub Bot commented on EAGLE-620: -------------------------------------- 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 ---- > AlertEngine: SpoutWrapper are sending duplicated message. > --------------------------------------------------------- > > Key: EAGLE-620 > URL: https://issues.apache.org/jira/browse/EAGLE-620 > Project: Eagle > Issue Type: Bug > Affects Versions: v0.5.0 > Reporter: Su Ralph > Assignee: Su Ralph > Priority: Blocker > Fix For: v0.5.0 > > > 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. -- This message was sent by Atlassian JIRA (v6.3.4#6332)