@Override public void transition(RMNodeImpl rmNode, RMNodeEvent event) { // The node is not usable, only log a warn message LOG.warn("Try to update resource on a "+ rmNode.getState().toString() + " node: "+rmNode.toString()); updateNodeResourceFromEvent(rmNode, (RMNodeResourceUpdateEvent)event); // No need to notify scheduler as schedulerNode is not function now // and can sync later from RMnode. } }
@Override public void transition(RMNodeImpl rmNode, RMNodeEvent event) { // The node is not usable, only log a warn message LOG.warn("Try to update resource on a "+ rmNode.getState().toString() + " node: "+rmNode.toString()); updateNodeResourceFromEvent(rmNode, (RMNodeResourceUpdateEvent)event); // No need to notify scheduler as schedulerNode is not function now // and can sync later from RMnode. } }
@Override public void transition(RMNodeImpl rmNode, RMNodeEvent event) { // The node is not usable, only log a warn message LOG.warn("Try to update resource on a "+ rmNode.getState().toString() + " node: "+rmNode.toString()); updateNodeResourceFromEvent(rmNode, (RMNodeResourceUpdateEvent)event); // No need to notify scheduler as schedulerNode is not function now // and can sync later from RMnode. } }
cm.getNumRebootedNMs()); Assert.assertEquals(NodeState.LOST, node1.getState()); Assert.assertTrue("Node " + node1.toString() + " should be inactive", rmContext.getInactiveRMNodes().containsKey(node1.getNodeID())); Assert.assertFalse("Node " + node2.toString() + " should not be inactive", rmContext.getInactiveRMNodes().containsKey(node2.getNodeID())); cm.getNumRebootedNMs()); Assert.assertEquals(NodeState.LOST, node2.getState()); Assert.assertTrue("Node " + node1.toString() + " should be inactive", rmContext.getInactiveRMNodes().containsKey(node1.getNodeID())); Assert.assertTrue("Node " + node2.toString() + " should be inactive", rmContext.getInactiveRMNodes().containsKey(node2.getNodeID()));