assertAllLocationsWithRebalance(1);
assertAllLocationsWithRebalance(2);
}
private void assertAllLocationsWithRebalance(int numOwners) {
ch = chf.create(new MurmurHash3(), numOwners, numSegments, chMembers);
assertAllLocations(numOwners, chMembers);
assertDistribution(numOwners, chMembers);
ch = chf.create(new MurmurHash3(), numOwners, numSegments, chMembers.subList(0, 1));
assertAllLocations(numOwners, chMembers.subList(0, 1));
for (int i = 2; i <= chMembers.size(); i++) {
List<Address> currentMembers = chMembers.subList(0, i);
log.debugf("Created CH with numOwners %d, members %s", numOwners, currentMembers);