This is an automated email from the ASF dual-hosted git repository.

tangyun pushed a commit to branch release-1.14
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/release-1.14 by this push:
     new b2ff654  [FLINK-26650][checkpoint] Avoid to print stack trace for 
checkpoint trigger failure if not all tasks are started
b2ff654 is described below

commit b2ff6543e6c2a6b6c6710281915b2d783090dc4b
Author: Yun Tang <[email protected]>
AuthorDate: Tue Mar 15 17:43:10 2022 +0800

    [FLINK-26650][checkpoint] Avoid to print stack trace for checkpoint trigger 
failure if not all tasks are started
---
 .../runtime/checkpoint/CheckpointFailureManager.java | 20 ++++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)

diff --git 
a/flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CheckpointFailureManager.java
 
b/flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CheckpointFailureManager.java
index b72be0c..233db3d 100644
--- 
a/flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CheckpointFailureManager.java
+++ 
b/flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CheckpointFailureManager.java
@@ -104,12 +104,20 @@ public class CheckpointFailureManager {
                         : pendingCheckpoint.getCheckpointID();
         updateStatsAfterCheckpointFailed(pendingCheckpointStats, statsTracker, 
exception);
 
-        LOG.warn(
-                "Failed to trigger or complete checkpoint {} for job {}. ({} 
consecutive failed attempts so far)",
-                checkpointId == UNKNOWN_CHECKPOINT_ID ? 
"UNKNOWN_CHECKPOINT_ID" : checkpointId,
-                job,
-                continuousFailureCounter.get(),
-                exception);
+        if (CheckpointFailureReason.NOT_ALL_REQUIRED_TASKS_RUNNING.equals(
+                exception.getCheckpointFailureReason())) {
+            LOG.info(
+                    "Failed to trigger checkpoint for job {} since {}.",
+                    job,
+                    exception.getMessage());
+        } else {
+            LOG.warn(
+                    "Failed to trigger or complete checkpoint {} for job {}. 
({} consecutive failed attempts so far)",
+                    checkpointId == UNKNOWN_CHECKPOINT_ID ? 
"UNKNOWN_CHECKPOINT_ID" : checkpointId,
+                    job,
+                    continuousFailureCounter.get(),
+                    exception);
+        }
         if (isJobManagerFailure(exception, executionAttemptID)) {
             handleJobLevelCheckpointException(checkpointProperties, exception, 
checkpointId);
         } else {

Reply via email to