Hi, Tuples that are emitted to bolts into the same worker are not serialized. In this case, the object which is passed into the tuple may be manipulate by differents bolts if the instance is shared. You should emit immutable objets into tuples.
A bolt is always executed by a single thread at time. 2015-09-18 0:46 GMT+02:00 Kashyap Mhaisekar <[email protected]>: > Hi, > I keep getting Concurrent Modification Exceptions in one of my bolts and > it happens at times. All the emitted fields are strings and one is an > object that I cast from incoming tuple. > > How to figure out which field is getting modified elsewhere? > Also, are bolts and its instance variables inherently thread safe? > > Thanks > Kashyap > -- Florian HUSSONNOIS
