[ https://issues.apache.org/jira/browse/FLINK-7649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16175080#comment-16175080 ]
ASF GitHub Bot commented on FLINK-7649: --------------------------------------- GitHub user tillrohrmann opened a pull request: https://github.com/apache/flink/pull/4700 [FLINK-7649] [flip6] Extend JobTerminationHandler to support stop ## What is the purpose of the change Rename the JobCancellationHandler into JobTerminationHandler which is now responsible for terminating jobs. Moreover, this commits adds two termination modes, cancel and stop, which are specified by providing a query parameter. ## Brief change log - Rename `JobCancellationHandler` into `JobTerminationHandler` being now responsible for the job termination (cancelling and stopping so far) - Introduce a `TerminationModeQueryParameter` which allows to specify the termination mode (`stop` and `cancel`) - Add `stopJob` to `DispatcherGateway` and `stop` to `JobMasterGateway` - Adapt `JobTerminationHandler` to either call `cancelJob` or `stopJob` on the `Dispatcher` depending on the mode (default is `cancel`) ## Verifying this change Tested manual that the right termination call is executed. ## 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: (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 portJobStoppingHandler Alternatively you can review and apply these changes as the patch at: https://github.com/apache/flink/pull/4700.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 #4700 ---- commit afa456f68a865ca5cf4aa1f60c2f1d43ff471e1b Author: Till Rohrmann <trohrm...@apache.org> Date: 2017-09-21T08:53:24Z [FLINK-7650] [flip6] Port JobCancellationHandler to new REST endpoint Let the JobCancellationHandler implement the LegacyRestHandler interface. Moreover, this commit adds the DELETE method to HttpMethodWrapper and the RestServerEndpoint#registerHandler method. commit a8f695607a1aa48d2af9175c47ed26dd965d9c05 Author: Till Rohrmann <trohrm...@apache.org> Date: 2017-09-21T14:47:18Z [FLINK-7649] [flip6] Extend JobTerminationHandler to support stop Rename the JobCancellationHandler into JobTerminationHandler which is now responsible for terminating jobs. Moreover, this commits adds two termination modes, cancel and stop, which are specified by providing a query parameter. ---- > Port JobStoppingHandler to new REST endpoint > -------------------------------------------- > > Key: FLINK-7649 > URL: https://issues.apache.org/jira/browse/FLINK-7649 > Project: Flink > Issue Type: Sub-task > Components: REST, Webfrontend > Reporter: Tzu-Li (Gordon) Tai > Assignee: Till Rohrmann > Labels: flip-6 > Fix For: 1.4.0 > > > Port existing {{JobStoppingHandler}} to new REST endpoint -- This message was sent by Atlassian JIRA (v6.4.14#64029)