Skip to content

Commit d4c83c3

Browse files
author
Nathan Marz
committed
add comment about logic of tracked topologies
1 parent 2acecc5 commit d4c83c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/clj/backtype/storm/testing.clj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,10 @@
501501
(fn [& args#]
502502
(NonRichBoltTracker. (apply old# args#) id#)
503503
))
504+
;; criticial that this particular function is overridden here,
505+
;; since the transferred stat needs to be incremented at the moment
506+
;; of tuple emission (and not on a separate thread later) for
507+
;; topologies to be tracked correctly
504508
executor/mk-executor-transfer-fn
505509
(let [old# executor/mk-executor-transfer-fn]
506510
(fn [& args#]

0 commit comments

Comments
 (0)