Skip to content

Commit 5a615e7

Browse files
author
Nathan Marz
committed
added test for error for rebalancing to zero executors
1 parent bf2904b commit 5a615e7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/clj/backtype/storm/nimbus_test.clj

+6
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,12 @@
432432
(bind slot-executors (slot-assignments cluster storm-id))
433433
(check-distribution slot-executors [1 1 1])
434434
(check-num-nodes slot-executors 3)
435+
436+
(is (thrown? InvalidTopologyException
437+
(.rebalance (:nimbus cluster) "test"
438+
(doto (RebalanceOptions.)
439+
(.set_num_executors {"1" 0})
440+
))))
435441
)))
436442

437443
(deftest test-cleans-corrupt

0 commit comments

Comments
 (0)