getFromJobExecutionContext(chunkContext,
JobConstants.NODE_OPERATION_SUCCESS, Boolean.class);
if (success != null && !success) {
throw ClusteringServiceException.CLUSTER_OPERATION_FAILED(clusterName);
}
NodeStatus expectedStatus =
getFromJobExecutionContext(chunkContext,
JobConstants.EXPECTED_NODE_STATUS, NodeStatus.class);
if (expectedStatus != null) {
logger.info("the node should be in status " + expectedStatus);
JobUtils.verifyNodeStatus(node, expectedStatus, true);