127128129130131132133134135136137
cluster.execute(operation); try { operation.await(); assertFalse(operation.isSuccess()); assertNotNull(operation.cause()); } finally {
101102103104105106107108109110111
new FetchOperation.Builder(location) .build(); boolean accepted = node.execute(operation); assertTrue(accepted); operation.await(); assertFalse(operation.isSuccess()); } Thread.sleep(2000); assertEquals(State.HEALTH_CHECKING, node.getNodeState());
258259260261262263264265266267268
FetchOperation operation = new FetchOperation.Builder(location) .build(); boolean accepted = node.execute(operation); operation.await(); assertFalse(operation.isSuccess()); assertNotNull(operation.cause()); node.shutdown().get(); }