public static void validateClusterPartitionCounts ( final Cluster lhs , final Cluster rhs ) { if ( lhs . getNumberOfPartitions ( ) != rhs . getNumberOfPartitions ( ) ) throw new VoldemortException ( "Total number of partitions should be equal [ lhs cluster (" + lhs . getNumberOfPartitions ( ) + ") not equal to rhs cluster (" + rhs . getNumberOfPartitions ( ) + ") ]" ) ; }
Confirms that both clusters have the same number of total partitions .