Skip to content

Commit

Permalink
this section of code was moved to new PR
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Jackson committed Mar 26, 2013
1 parent c6cbcfc commit 4bc5f51
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/clj/backtype/storm/daemon/supervisor.clj
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,7 @@
(defn- wait-for-worker-launch [conf id start-time]
(let [state (worker-state conf id)]
(loop []
(let [hb (try (.get state LS-WORKER-HEARTBEAT)
(catch java.io.FileNotFoundException e
;; This solves race condition in unit tests if you try to shutdown
;; a worker which cleans up worker state while you also try to wait
;; for worker to launch by reading the same state.
nil))]
(let [hb (.get state LS-WORKER-HEARTBEAT)]
(when (and
(not hb)
(<
Expand Down

0 comments on commit 4bc5f51

Please sign in to comment.