Buggy code:
public class CoordinatedBolt implements IRichBolt { public static Logger LOG = Logger . getLogger ( CoordinatedBolt . class ) ; public static interface FinishedCallback { void finishedId ( Object id ) { } } public static class SourceArgs implements Serializable { public boolean singleCount ; protected SourceArgs ( boolean singleCount ) { } public static CoordinatedBolt . SourceArgs single ( ) { } public static CoordinatedBolt . SourceArgs all ( ) { } @ Override public String toString ( ) { } } public class CoordinatedOutputCollector extends OutputCollector { IOutputCollector _delegate ; public CoordinatedOutputCollector ( IOutputCollector delegate ) { } public List < Integer > emit ( String stream , Collection < IAnchorable > anchors , List < Object > tuple ) { } public void emitDirect ( int task , String stream , Collection < IAnchorable > anchors , List < Object > tuple ) { } public void ack ( Tuple tuple ) { } public void fail ( Tuple tuple ) { } public void reportError ( Throwable error ) { } private void updateTaskCounts ( Object id , List < Integer > tasks ) { } } private CoordinatedBolt . SourceArgs _sourceArgs ; private String _idComponent ; private IRichBolt _delegate ; private Integer _numSourceReports ; private List < Integer > _countOutTasks = new ArrayList < Integer > ( ) ; private OutputCollector _collector ; private TimeCacheMap < Object , CoordinatedBolt . TrackingInfo > _tracked ; public static class TrackingInfo { int reportCount = 0 ; int expectedTupleCount = 0 ; int receivedTuples = 0 ; Map < Integer , Integer > taskEmittedTuples = new HashMap < Integer , Integer > ( ) ; boolean receivedId = false ; @ Override public String toString ( ) { } } public CoordinatedBolt ( IRichBolt delegate ) { } public CoordinatedBolt ( IRichBolt delegate , CoordinatedBolt . SourceArgs sourceArgs , String idComponent ) { } public void prepare ( Map config , TopologyContext context , OutputCollector collector ) { <START_BUG> _tracked = new TimeCacheMap < Object , CoordinatedBolt . TrackingInfo > ( Utils . toInteger ( config . get ( TOPOLOGY_MESSAGE_TIMEOUT_SECS ) ) ) ; <END_BUG> _collector = collector ; _delegate . prepare ( config , context , new CoordinatedBolt . CoordinatedOutputCollector ( collector ) ) ; for ( String component : Utils . get ( context . getThisTargets ( ) , COORDINATED_STREAM_ID , new HashMap < String , backtype . storm . generated . Grouping > ( ) ) . keySet ( ) ) { for ( Integer task : context . getComponentTasks ( component ) ) { _countOutTasks . add ( task ) ; } } if ( ( _sourceArgs ) != null ) { if ( _sourceArgs . singleCount ) { _numSourceReports = 1 ; } else { Iterator < GlobalStreamId > it = context . getThisSources ( ) . keySet ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { String sourceComponent = it . next ( ) . get_componentId ( ) ; if ( ( ( _idComponent ) == null ) || ( ! ( sourceComponent . equals ( _idComponent ) ) ) ) { _numSourceReports = context . getComponentTasks ( sourceComponent ) . size ( ) ; break ; } } } } } private void checkFinishId ( Object id ) { } public void execute ( Tuple tuple ) { } public void cleanup ( ) { } public void declareOutputFields ( OutputFieldsDeclarer declarer ) { } }

Fix:
_tracked = new TimeCacheMap < Object , CoordinatedBolt . TrackingInfo > ( Utils . getInt ( config . get ( TOPOLOGY_MESSAGE_TIMEOUT_SECS ) ) ) ;