kl0u commented on a change in pull request #9131: [FLINK-12858][checkpointing] 
Stop-with-savepoint, workaround: fail whole job when savepoint is declined by a 
task
URL: https://github.com/apache/flink/pull/9131#discussion_r305333605
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CheckpointFailureReason.java
 ##########
 @@ -79,4 +79,38 @@
        public String message() {
                return message;
        }
+
+       /**
+        * @return true if this value indicates a failure reason happening 
before a checkpoint is passed to a job's tasks.
+        */
+       public boolean isPreFlight() {
 
 Review comment:
   @1u0 Although better than before, I think that this method is also fragile 
as it expects that anybody who adds a new member here, will have to update the 
method accordingly. As I said in the previous comment, I find the solution of a 
`final boolean` flag which is set in the constructor more future-proof.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to