public static void validateClusterNodeCounts ( final Cluster lhs , final Cluster rhs ) { if ( ! lhs . getNodeIds ( ) . equals ( rhs . getNodeIds ( ) ) ) { throw new VoldemortException ( "Node ids are not the same [ lhs cluster node ids (" + lhs . getNodeIds ( ) + ") not equal to rhs cluster node ids (" + rhs . getNodeIds ( ) + ") ]" ) ; } }
Confirms that both clusters have the same number of nodes by comparing set of node Ids between clusters .