You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@storm.apache.org by bo...@apache.org on 2016/01/11 16:51:04 UTC

[2/4] storm git commit: Avoid finding configuration in loop

Avoid finding configuration in loop


Project: http://git-wip-us.apache.org/repos/asf/storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/a0d05f83
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/a0d05f83
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/a0d05f83

Branch: refs/heads/master
Commit: a0d05f8397be3e26fcc262553a773109756329a4
Parents: 0f1b142
Author: Kishor Patil <kp...@yahoo-inc.com>
Authored: Fri Jan 8 14:53:20 2016 -0600
Committer: Kishor Patil <kp...@yahoo-inc.com>
Committed: Fri Jan 8 14:53:20 2016 -0600

----------------------------------------------------------------------
 storm-core/src/clj/backtype/storm/daemon/executor.clj | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/storm/blob/a0d05f83/storm-core/src/clj/backtype/storm/daemon/executor.clj
----------------------------------------------------------------------
diff --git a/storm-core/src/clj/backtype/storm/daemon/executor.clj b/storm-core/src/clj/backtype/storm/daemon/executor.clj
index 4c2f3c7..7fee67b 100644
--- a/storm-core/src/clj/backtype/storm/daemon/executor.clj
+++ b/storm-core/src/clj/backtype/storm/daemon/executor.clj
@@ -497,6 +497,7 @@
         spouts (ArrayList. (map :object (vals task-datas)))
         rand (Random. (Utils/secureRandomLong))
         ^DisruptorQueue transfer-queue (executor-data :batch-transfer-queue)
+        debug? (= true (storm-conf TOPOLOGY-DEBUG))
 
         pending (RotatingMap.
                  2 ;; microoptimize for performance of .size method
@@ -573,7 +574,7 @@
                                              (.put pending root-id [task-id
                                                                     message-id
                                                                     {:stream out-stream-id 
-                                                                     :values (if (= true (storm-conf TOPOLOGY-DEBUG)) values nil)}
+                                                                     :values (if debug? values nil)}
                                                                     (if (sampler) (System/currentTimeMillis))])
                                              (task/send-unanchored task-data
                                                                    ACKER-INIT-STREAM-ID