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

    https://github.com/apache/flink/pull/3334#discussion_r103638771
  
    --- Diff: 
flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CheckpointCoordinator.java
 ---
    @@ -537,12 +562,27 @@ else if (!props.forceCheckpoint()) {
                                if (!checkpoint.isDiscarded()) {
                                        checkpoint.abortError(new 
Exception("Failed to trigger checkpoint"));
                                }
    +                           if(numUnsuccessful > 
maxUnsuccessfulCheckpoints) {
    +                                   return failExecution(executions);
    +                           }
                                return new 
CheckpointTriggerResult(CheckpointDeclineReason.EXCEPTION);
                        }
     
                } // end trigger lock
        }
     
    +   private CheckpointTriggerResult failExecution(Execution[] executions) {
    +           if (currentPeriodicTrigger != null) {
    +                   currentPeriodicTrigger.cancel();
    +                   currentPeriodicTrigger = null;
    +           }
    +           for (Execution execution : executions) {
    +                   // fail the graph
    +                   execution.fail(new Throwable("The number of max 
unsuccessful checkpoints attempts exhausted"));
    --- End diff --
    
    I verified the code once again. There is no reference to ExecutionGraph in 
Checkpointcoordinator and also calling fail on the current Execution actually 
triggers the restart flow to happen.
    Execution#fail()->Marks state to 
FAILED->vertex#executionFailed()->graph#jobVertexInFinalState(). So you think 
this way of failing won't work?


---
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.
---

Reply via email to