You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2021/08/24 04:22:43 UTC
[GitHub] [flink] zlzhang0122 commented on a change in pull request #16847: [FLINK-23561][yarn]Detail the container completed message
zlzhang0122 commented on a change in pull request #16847:
URL: https://github.com/apache/flink/pull/16847#discussion_r694480432
##########
File path: flink-yarn/src/main/java/org/apache/flink/yarn/YarnResourceManagerDriver.java
##########
@@ -689,4 +690,54 @@ public void onStopContainerError(ContainerId containerId, Throwable throwable) {
throwable);
}
}
+
+ public String getConatainerCompletedCause(ContainerStatus containerStatus) {
+ String completeContainerMessage = containerStatus.getDiagnostics();
+ switch (containerStatus.getExitStatus()) {
+ case ContainerExitStatus.SUCCESS:
+ log.debug(
+ "Executor for container {} exited because of a YARN event (e.g., "
+ + "preemption) and not because of an error in the running job. Diagnostics: {}",
+ containerStatus.getContainerId().toString(),
+ completeContainerMessage);
+ break;
+ case ContainerExitStatus.PREEMPTED:
+ completeContainerMessage =
+ String.format(
+ "Container %s was preempted by yarn. Diagnostics: %s",
+ containerStatus.getContainerId().toString(),
+ completeContainerMessage);
+ break;
+ case ContainerExitStatus.INVALID:
+ completeContainerMessage =
+ String.format(
+ "Container %s was invalid. Diagnostics: %s",
Review comment:
IMO invalid means the container encounter with some error and can't serviced any more, DISKS_FAILED is also a kind of INVALID, but the yarn distinguish it from the INVALID status.
--
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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org