tillrohrmann closed pull request #7223: [FLINK-11011][E2E][JM] Log error 
messages about null CheckpointCoordinator only if job is running
URL: https://github.com/apache/flink/pull/7223
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/JobMaster.java 
b/flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/JobMaster.java
index c8a8e882913..a89079dea25 100644
--- 
a/flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/JobMaster.java
+++ 
b/flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/JobMaster.java
@@ -681,8 +681,12 @@ public void acknowledgeCheckpoint(
                                }
                        });
                } else {
-                       log.error("Received AcknowledgeCheckpoint message for 
job {} with no CheckpointCoordinator",
-                                       jobGraph.getJobID());
+                       String errorMessage = "Received AcknowledgeCheckpoint 
message for job {} with no CheckpointCoordinator";
+                       if (executionGraph.getState() == JobStatus.RUNNING) {
+                               log.error(errorMessage, jobGraph.getJobID());
+                       } else {
+                               log.debug(errorMessage, jobGraph.getJobID());
+                       }
                }
        }
 
@@ -700,8 +704,12 @@ public void declineCheckpoint(DeclineCheckpoint decline) {
                                }
                        });
                } else {
-                       log.error("Received DeclineCheckpoint message for job 
{} with no CheckpointCoordinator",
-                                       jobGraph.getJobID());
+                       String errorMessage = "Received DeclineCheckpoint 
message for job {} with no CheckpointCoordinator";
+                       if (executionGraph.getState() == JobStatus.RUNNING) {
+                               log.error(errorMessage, jobGraph.getJobID());
+                       } else {
+                               log.debug(errorMessage, jobGraph.getJobID());
+                       }
                }
        }
 


 

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


With regards,
Apache Git Services

Reply via email to