You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@storm.apache.org by Henrik Lindholm <he...@viaplay.com> on 2016/02/25 16:20:42 UTC

ConcurrentModification

Hi!

I’m working on a storm topology where I have a stateful bolt that has two inputs, 
one is from a kinesis spout going through a set of bolts and one is from a clock spout that emits tuples based on a cron expression.

My issue is that I get a ConcurrentModificationException from TopologyBuilder when i create the topology.
I get it from the method TopologyBuilder.addCheckPointInputs(…), that method adds inputs to the same set of inputs that it’s iterating over, hence ConcurrentModification.

Is there any way around this or do i need to wait for a fix? and when could a fix be available?

Best Regards
Henrik Lindholm


Re: ConcurrentModification

Posted by Arun Iyer <ai...@hortonworks.com>.
Hi Henrik,

Yes, its a bug. The example topologies in storm-starter did not uncover this.

I have opened a JIRA and plan to put in a fix soon. https://issues.apache.org/jira/browse/STORM-1576

You could add your observation in the JIRA if you wish.

Regards,
Arun



On 2/25/16, 8:50 PM, "Henrik Lindholm" <he...@viaplay.com> wrote:

>Hi!
>
>I’m working on a storm topology where I have a stateful bolt that has two inputs, 
>one is from a kinesis spout going through a set of bolts and one is from a clock spout that emits tuples based on a cron expression.
>
>My issue is that I get a ConcurrentModificationException from TopologyBuilder when i create the topology.
>I get it from the method TopologyBuilder.addCheckPointInputs(…), that method adds inputs to the same set of inputs that it’s iterating over, hence ConcurrentModification.
>
>Is there any way around this or do i need to wait for a fix? and when could a fix be available?
>
>Best Regards
>Henrik Lindholm
>
>