You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by tr...@apache.org on 2018/12/06 11:08:46 UTC
[flink] branch release-1.7 updated: [FLINK-11011][E2E][JM] Log
error messages about null CheckpointCoordinator only if job is running
(#7224)
This is an automated email from the ASF dual-hosted git repository.
trohrmann pushed a commit to branch release-1.7
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.7 by this push:
new 1c1de74 [FLINK-11011][E2E][JM] Log error messages about null CheckpointCoordinator only if job is running (#7224)
1c1de74 is described below
commit 1c1de7415002fc889510e8c84f807efbce149e5a
Author: azagrebin <az...@users.noreply.github.com>
AuthorDate: Thu Dec 6 12:08:40 2018 +0100
[FLINK-11011][E2E][JM] Log error messages about null CheckpointCoordinator only if job is running (#7224)
---
.../org/apache/flink/runtime/jobmaster/JobMaster.java | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
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 40a675a..0b245e7 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
@@ -683,8 +683,12 @@ public class JobMaster extends FencedRpcEndpoint<JobMasterId> implements JobMast
}
});
} 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());
+ }
}
}
@@ -702,8 +706,12 @@ public class JobMaster extends FencedRpcEndpoint<JobMasterId> implements JobMast
}
});
} 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());
+ }
}
}