Github user revans2 commented on a diff in the pull request:

    https://github.com/apache/storm/pull/2203#discussion_r160496988
  
    --- Diff: storm-core/src/clj/org/apache/storm/daemon/executor.clj ---
    @@ -446,7 +451,7 @@
         (.ack spout msg-id)
         (task/apply-hooks (:user-context task-data) .spoutAck (SpoutAckInfo. 
msg-id task-id time-delta))
         (when time-delta
    -      (stats/spout-acked-tuple! (:stats executor-data) (:stream 
tuple-info) time-delta))))
    +      (stats/spout-acked-tuple! (:stats executor-data) 
(StormMetricRegistry/counter "acked" (:worker-context executor-data) 
(:component-id executor-data) (pr-str (:executor-id executor-data)) (:stream 
tuple-info)) (:stream tuple-info) time-delta))))
    --- End diff --
    
    nit: how expensive is it to get the counter?
    
    Building up the metric name does not sound ideal, and this is on the 
critical path.
     
    This goes for a lot of places.


---

Reply via email to