"agentDFOSink(\"invalid\", 12346)");
master.getSpecMan().addLogicalNode(NetUtils.localhost(), lnode);
liveMan.heartbeatChecks();
LogicalNode n = node.getLogicalNodeManager().get(lnode);
Driver d = n.getDriver();
assertTrue("Attempting to start driver timed out",
d.waitForAtLeastState(DriverState.ACTIVE, 20000));
// update config node to something that will be interrupted.
LOG.info("!!! decommissioning node on master");
master.getSpecMan().removeLogicalNode(lnode);
liveMan.heartbeatChecks();
LOG.info("!!! logical node should be decommissioning on node");
assertTrue("Attempting to start driver timed out",
d.waitForAtLeastState(DriverState.IDLE, 20000));
LOG.info("Clean close.");
// false means timeout, takes about 10 seconds to shutdown.
assertTrue("Attempting to decommission driver timed out",
d.waitForAtLeastState(DriverState.IDLE, 10000));
assertEquals("Only expected default logical node", 1, node
.getLogicalNodeManager().getNodes().size());
assertNull(node.getLogicalNodeManager().get(lnode));
}