You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by StephanEwen <gi...@git.apache.org> on 2017/02/22 14:24:40 UTC

[GitHub] flink pull request #3346: [FLINK-5763] [checkpoints] Add CheckpointOptions f...

Github user StephanEwen commented on a diff in the pull request:

    https://github.com/apache/flink/pull/3346#discussion_r102472651
  
    --- Diff: flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CheckpointCoordinator.java ---
    @@ -296,15 +298,42 @@ public boolean isShutdown() {
     		checkNotNull(targetDirectory, "Savepoint target directory");
     
     		CheckpointProperties props = CheckpointProperties.forStandardSavepoint();
    -		CheckpointTriggerResult result = triggerCheckpoint(timestamp, props, targetDirectory, false);
     
    -		if (result.isSuccess()) {
    -			return result.getPendingCheckpoint().getCompletionFuture();
    -		}
    -		else {
    -			Throwable cause = new Exception("Failed to trigger savepoint: " + result.getFailureReason().message());
    -			return FlinkCompletableFuture.completedExceptionally(cause);
    +		// Create the unique savepoint directory
    +		final String savepointDirectory = SavepointStore
    --- End diff --
    
    Let's keep it as it is for this PR, will probably change a bit once the for the JobManager knows the StateBackend,


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---