Github user mjsax commented on a diff in the pull request:
https://github.com/apache/flink/pull/1398#discussion_r45887487
--- Diff:
flink-contrib/flink-storm/src/main/java/org/apache/flink/storm/api/FlinkLocalCluster.java
---
@@ -99,6 +111,7 @@ public void rebalance(final String name, final
RebalanceOptions options) {
public void shutdown() {
flink.stop();
+ flink = null;
--- End diff --
Should be kept. Otherwise, calling `submitTopologyWithOpts` a second time
will run into a NPE. (Or add proper exception as `else` of `if (flink == null)`
check, ie, "Cannot run topology. Cluster got shut down." or similar.)
---
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.
---