GitHub user uce opened a pull request:
https://github.com/apache/flink/pull/2609
[FLINK-4717] Add CancelJobWithSavepoint
This builds on top of #2608.
- Adds CancelJobWithSavepoint message, which triggers a savepoint before
cancelling the respective job. The periodic checkpoint scheduler is stopped
before doing this so that no checkpoints happen between the savepoint and
cancellation. Note that users could manually trigger another savepoint while
cancel-with-savepoint happens, but I think this is tolerable.
- Adds `-s [targetDirectory]` option to CLI cancel command:
* Regular cancelling:`bin/flink cancel <jobID>`
* Cancel with savepoint to default dir: `bin/flink cancel -s <jobID>`
* Cancel with savepoint to target dir: `bin/flink cancel -s [targetDir]
<jobID>`
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/uce/flink 4717-cancel_with_savepoint
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/2609.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 #2609
----
----
---
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.
---