bug fix: checking partition id in Cluster.java #84

Closed
wants to merge 1 commit into
from
View
2 src/java/voldemort/cluster/Cluster.java
@@ -83,7 +83,7 @@ private int getNumberOfTags(List<Node> nodes) {
for(Node node: nodes)
tags.addAll(node.getPartitionIds());
Collections.sort(tags);
- for(int i = 0; i < numberOfTags; i++) {
+ for(int i = 0; i < tags.size(); i++) {
if(tags.get(i).intValue() != i)
throw new IllegalArgumentException("Invalid tag assignment.");
}