for(ByteArray key: this.proxyPutTestSecondaryEntries.keySet()) {
this.secondaryEntriesMoved.remove(key);
}
assertTrue("Not enough secondary entries", primaryEntriesMoved.size() > 1);
RebalanceBatchPlan RebalanceBatchPlan = new
RebalanceBatchPlan(currentCluster,
targetCluster,
Lists.newArrayList(storeDef));
List<RebalanceTaskInfo> plans =
Lists.newArrayList(RebalanceBatchPlan.getBatchPlan());
// Set into rebalancing state
for(RebalanceTaskInfo partitionPlan: plans) {
servers[partitionPlan.getStealerId()].getMetadataStore()
.put(MetadataStore.SERVER_STATE_KEY,