## What is the purpose of the change This PR picks up #6540, adds a cli option to activate the cluster shutdown hook. By default, it preserves previous behaviour where cluster is not shutdown in case of abrupt cli exit.
## Brief change log - add SHUTDOWN_IF_ATTACHED_OPTION in cli ## Verifying this change Trivial option, can be checked running example job in local yarn cluster: HADOOP_CLASSPATH=`hadoop classpath` $FLINK/bin/flink run -m yarn-cluster $FLINK/examples/streaming/WordCount.jar ## Does this pull request potentially affect one of the following parts: - Dependencies (does it add or upgrade a dependency): (no) - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: (no) - The serializers: (no) - The runtime per-record code paths (performance sensitive): (no) - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (yes) - The S3 file system connector: (no) ## Documentation - Does this pull request introduce a new feature? (yes) - If yes, how is the feature documented? (docs) [ Full content available at: https://github.com/apache/flink/pull/6718 ] This message was relayed via gitbox.apache.org for [email protected]
