for(ClusterNodeSpec node : nodes) {
mapNode(node);
}
if(nodeMap.size() != (nodeReplicationCnt/4) * nodes.size() * 4) {
Log.error("nodeMap size: " + nodeMap.size() + " | expected: " + nodeReplicationCnt * nodes.size());
throw new ProviderException ("[BUG]: expecting node map size to be multiple of replication count * cluster node count");
}
}
catch (ClassCastException e) {
throw new ProviderException ("[BUG] KetamaNodeMappingAlgorithm requires a KetamaHashAlgorithm");
}
}