GitHub user tillrohrmann opened a pull request: https://github.com/apache/flink/pull/5741
[FLINK-8900] [yarn] Properly unregister application from Yarn RM ## What is the purpose of the change Unregisters the Flink application from Yarn if the application is shut down. This is required to properly show the state and final status in the Yarn web UI. ## Verifying this change - Manually tested ## 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? (no) - If yes, how is the feature documented? (not applicable) You can merge this pull request into a Git repository by running: $ git pull https://github.com/tillrohrmann/flink yarnApplicationStatus Alternatively you can review and apply these changes as the patch at: https://github.com/apache/flink/pull/5741.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #5741 ---- commit 71efa75973d066268bbb3533f29da05270ef24b2 Author: Till Rohrmann <trohrmann@...> Date: 2018-03-21T20:48:19Z [hotfix] Log final status and exit code under lock commit c10e100cbf09e602415ff72043b857a1e29daf66 Author: Till Rohrmann <trohrmann@...> Date: 2018-03-21T21:14:58Z [hotfix] Add FutureUtils#composeAfterwards commit 2072210eddbb13add2b3228fd08c8550075cdfc1 Author: Till Rohrmann <trohrmann@...> Date: 2018-03-21T21:19:28Z [FLINK-8900] [yarn] Properly unregister application from Yarn RM ---- ---