Skip to content

Commit 103806c

Browse files
author
Nathan Marz
committed
backport disabling of slashes for topology names
1 parent f95c40d commit 103806c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,8 @@
679679
(reify Nimbus$Iface
680680
(^void submitTopology
681681
[this ^String storm-name ^String uploadedJarLocation ^String serializedConf ^StormTopology topology]
682+
(if (.contains storm-name "/")
683+
(throw (InvalidTopologyException. "Topology name cannot contains slashes")))
682684
(check-storm-active! nimbus storm-name false)
683685
(swap! (:submitted-count nimbus) inc)
684686
(let [storm-id (str storm-name "-" @(:submitted-count nimbus) "-" (current-time-secs))

0 commit comments

Comments
 (0)