public void transition(AMNodeImpl node, AMNodeEvent nEvent) {
AMNodeEventContainerAllocated event = (AMNodeEventContainerAllocated) nEvent;
LOG.info("Node: " + node.getNodeId()
+ " got allocated a contaienr with id: " + event.getContainerId()
+ " while in UNHEALTHY state. Releasing it.");
node.sendEvent(new AMContainerEventNodeFailed(event.getContainerId(),
"new container assigned on failed node " + node.getNodeId()));
}