You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ga...@apache.org on 2021/09/14 07:04:03 UTC
[flink] 02/02: [FLINK-24266][checkpoint] Log improvement for
aborting checkpoint due to tasks are finishing
This is an automated email from the ASF dual-hosted git repository.
gaoyunhaii pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
commit 94d0bea912122aed36024842c8962bdeff845a21
Author: Yun Gao <ga...@gmail.com>
AuthorDate: Mon Sep 13 14:39:18 2021 +0800
[FLINK-24266][checkpoint] Log improvement for aborting checkpoint due to tasks are finishing
This closes #17250.
---
.../org/apache/flink/runtime/checkpoint/CheckpointCoordinator.java | 6 ++++++
.../apache/flink/runtime/checkpoint/CheckpointFailureReason.java | 3 +--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CheckpointCoordinator.java b/flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CheckpointCoordinator.java
index a51a63f..47575ea 100644
--- a/flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CheckpointCoordinator.java
+++ b/flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CheckpointCoordinator.java
@@ -650,6 +650,12 @@ public class CheckpointCoordinator {
triggerTasks(request, timestamp, checkpoint)
.exceptionally(
failure -> {
+ LOG.info(
+ "Triggering Checkpoint {} for job {} failed due to {}",
+ checkpoint.getCheckpointID(),
+ job,
+ failure);
+
final CheckpointException cause;
if (failure instanceof CheckpointException) {
cause = (CheckpointException) failure;
diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CheckpointFailureReason.java b/flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CheckpointFailureReason.java
index 45a2c9d..75a70c0 100644
--- a/flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CheckpointFailureReason.java
+++ b/flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CheckpointFailureReason.java
@@ -47,8 +47,7 @@ public enum CheckpointFailureReason {
CHECKPOINT_DECLINED_TASK_NOT_READY(false, "Checkpoint was declined (tasks not ready)"),
- CHECKPOINT_DECLINED_TASK_CLOSING(
- false, "Checkpoint was declined (task's operators partially closed)"),
+ CHECKPOINT_DECLINED_TASK_CLOSING(false, "Checkpoint was declined (task is closing)"),
CHECKPOINT_DECLINED_TASK_NOT_CHECKPOINTING(false, "Task does not support checkpointing"),