We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2529452 commit baae324Copy full SHA for baae324
src/clj/backtype/storm/timer.clj
@@ -25,7 +25,7 @@
25
(fn []
26
(while @active
27
(try
28
- (let [[time-secs _ _ :as elem] (.peek queue)]
+ (let [[time-secs _ _ :as elem] (locking lock (.peek queue))]
29
(if (and elem (>= (current-time-secs) time-secs))
30
;; imperative to not run the function inside the timer lock
31
;; otherwise, it's possible to deadlock if function deals with other locks
0 commit comments