tillrohrmann commented on a change in pull request #9364:
[FLINK-13593][checkpointing] Prevent failing the wrong execution attempt in
CheckpointFailureManager
URL: https://github.com/apache/flink/pull/9364#discussion_r312357131
##########
File path:
flink-runtime/src/test/java/org/apache/flink/runtime/checkpoint/CheckpointCoordinatorFailureTest.java
##########
@@ -66,7 +66,15 @@ public void testFailingCompletedCheckpointStoreAdd() throws
Exception {
final long triggerTimestamp = 1L;
- CheckpointFailureManager failureManager = new
CheckpointFailureManager(0, throwable -> {});
+ CheckpointFailureManager failureManager = new
CheckpointFailureManager(
+ 0,
+ new CheckpointFailureManager.FailJobCallback() {
+ @Override
+ public void failJob(Throwable cause) {}
+
+ @Override
+ public void failJobDueToTaskFailure(Throwable
cause, ExecutionAttemptID failingTask) {}
Review comment:
Nit: Why not using lambda here? Would be a bit shorter.
----------------------------------------------------------------
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