private void validateNodesStatus(){
  nodeCount=coordinator.getNodeCount();
  if (aliveNodes.size() == nodeCount) {
    markRecoveryCancelled();
    log.warn("All nodes are alive, no need to do recovery");
    throw new IllegalStateException("No need to do recovery");
  }
 else   if (aliveNodes.size() < (nodeCount / 2 + 1)) {
    markRecoveryCancelled();
    log.warn("This procedure doesn't support majority nodes corrupted scenario");
    throw new IllegalStateException("Majority nodes are corrupted");
  }
}

private void validateNodesStatus ( ) { nodeCount = coordinator . getNodeCount ( ) ; if ( aliveNodes . size ( ) == nodeCount ) { markRecoveryCancelled ( ) ; log . warn ( "All nodes are alive, no need to do recovery" ) ; throw new IllegalStateException ( "No need to do recovery" ) ; } else if ( aliveNodes . size ( ) < ( nodeCount / 2 + 1 ) ) { markRecoveryCancelled ( ) ; log . warn ( "This procedure doesn't support majority nodes corrupted scenario" ) ; throw new IllegalStateException ( "Majority nodes are corrupted" ) ; } }
validate cluster is in minority node corrupted scenario
