Skip to content

Commit 37313e4

Browse files
author
Nathan Marz
committed
fix bug where a topology's status would get corrupted to true if nimbus is restarted while status is rebalancing or killed
1 parent ae862e8 commit 37313e4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/clj/backtype/storm/daemon/nimbus.clj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@
130130
:killed {:startup (fn [] (delay-event nimbus
131131
storm-id
132132
(:kill-time-secs status)
133-
:remove))
133+
:remove)
134+
nil)
134135
:kill (kill-transition nimbus storm-id)
135136
:remove (fn []
136137
(log-message "Killing topology: " storm-id)
@@ -141,7 +142,8 @@
141142
:rebalancing {:startup (fn [] (delay-event nimbus
142143
storm-id
143144
(:delay-secs status)
144-
:do-rebalance))
145+
:do-rebalance)
146+
nil)
145147
:kill (kill-transition nimbus storm-id)
146148
:do-rebalance (fn []
147149
(do-rebalance nimbus storm-id status)

0 commit comments

Comments
 (0)