YARN-269. Resource Manager not logging the health_check_script result when taking it out. Contributed by Jason Lowe

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1451341 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Kihwal Lee 2013-02-28 21:02:06 +00:00
parent 892846dc04
commit 27c8a87a54
2 changed files with 5 additions and 0 deletions

View File

@ -325,6 +325,9 @@ Release 0.23.7 - UNRELEASED
YARN-236. RM should point tracking URL to RM web page when app fails to
start (Jason Lowe via jeagles)
YARN-269. Resource Manager not logging the health_check_script result when
taking it out (Jason Lowe via kihwal)
OPTIMIZATIONS
YARN-357. App submission should not be synchronized (daryn)

View File

@ -498,6 +498,8 @@ public class RMNodeImpl implements RMNode, EventHandler<RMNodeEvent> {
statusEvent.getNodeHealthStatus();
rmNode.setNodeHealthStatus(remoteNodeHealthStatus);
if (!remoteNodeHealthStatus.getIsNodeHealthy()) {
LOG.info("Node " + rmNode.nodeId + " reported UNHEALTHY with details: "
+ remoteNodeHealthStatus.getHealthReport());
rmNode.nodeUpdateQueue.clear();
// Inform the scheduler
rmNode.context.getDispatcher().getEventHandler().handle(