storm-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bobby Evans <ev...@yahoo-inc.com>
Subject Re: Do I need to synchronize emits?
Date Mon, 09 Feb 2015 15:24:02 GMT
If you are emitting from multiple threads then, yes you need to synchronize around the emit
call.  This is not a typical use case so we do not synchronize by default. - Bobby
 

     On Sunday, February 8, 2015 4:01 AM, clay teahouse <clayteahouse@gmail.com> wrote:
   

 Hi All,

 I emit my tuples in batches. Do I need to put the emit in a synchronized
block? The reason I am asking, I am getting the IndexOutOfBoundsException
error once in a while, especially with a high paralleliziation hint.
According to this link, it is a bug in storm, but I am using the latest
storm package.

http://stackoverflow.com/questions/19632287/indexoutofboundsexception-in-shuffle-grouping


thanks
Clay


   
Mime
View raw message