@Override
public BalancerSegmentHolder pickSegmentToMove(final List<ServerHolder> serverHolders)
{
ReservoirSegmentSampler sampler = new ReservoirSegmentSampler();
return sampler.getRandomBalancerSegmentHolder(serverHolders);
}
I see a probability here that the coordinator picks the same segment several times within a single rebalancing phase as nothing keeps the record of selected segments.
I see a probability here that the coordinator picks the same segment several times within a single rebalancing phase as nothing keeps the record of selected segments.