code: public static void validateClusterNodeState(final Cluster subsetCluster,
                                                  final Cluster supersetCluster) {
          if(!supersetCluster.getNodeIds().containsAll(subsetCluster.getNodeIds())) {
              throw new VoldemortException("Superset cluster does not contain all nodes from subset cluster[ subset cluster node ids ("
                                           + subsetCluster.getNodeIds()
                                           + ") are not a subset of superset cluster node ids ("
                                           + supersetCluster.getNodeIds() + ") ]");
  
          }
          for(Node subsetNode: subsetCluster.getNodes()) {
              Node supersetNode = supersetCluster.getNodeById(subsetNode.getId());
              if(!subsetNode.isEqualState(supersetNode)) {
                  throw new VoldemortException("Nodes do not have same state[ subset node state ("
                                               + subsetNode.getStateString()
                                               + ") not equal to superset node state ("
                                               + supersetNode.getStateString() + ") ]");
              }
          }
      }
docs: Confirms that any nodes from supersetCluster that are in subsetCluster
  have the same state (i.e., node id, host name, and ports). Specific
  partitions hosted are not compared.
  
  @param subsetCluster
  @param supersetCluster