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
|