[
https://issues.apache.org/jira/browse/FLINK-4717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15555461#comment-15555461
]
ASF GitHub Bot commented on FLINK-4717:
---------------------------------------
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
----
----
> Naive version of atomic stop signal with savepoint
> --------------------------------------------------
>
> Key: FLINK-4717
> URL: https://issues.apache.org/jira/browse/FLINK-4717
> Project: Flink
> Issue Type: New Feature
> Components: State Backends, Checkpointing
> Affects Versions: 1.2.0
> Reporter: Till Rohrmann
> Priority: Minor
> Fix For: 1.2.0
>
>
> As a first step towards atomic stopping with savepoints we should implement a
> cancel command which prior to cancelling takes a savepoint. Additionally, it
> should turn off the periodic checkpointing so that there won't be checkpoints
> executed between the savepoint and the cancel command.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)