Github user revans2 commented on a diff in the pull request:
https://github.com/apache/storm/pull/1515#discussion_r68279943
--- Diff: storm-core/src/jvm/org/apache/storm/topology/TopologyBuilder.java
---
@@ -113,6 +113,15 @@ public StormTopology createTopology() {
Map<String, Bolt> boltSpecs = new HashMap<>();
Map<String, SpoutSpec> spoutSpecs = new HashMap<>();
maybeAddCheckpointSpout();
+
+ if (_spouts.size() == 0) {
+ throw new IllegalArgumentException("Spouts is not set");
+ }
+
+ if (_bolts.size() == 0) {
--- End diff --
We have topologies that only have spouts (no bolts). I know it is kind of
an odd corner case where someone is just reading from an input and writing to
an output in one shot, but it is something that we have.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---