Map<ParticipantId, State> replicaMap =
ConstraintBasedAssignment.computeCustomizedBestStateForPartition(cluster
.getLiveParticipantMap().keySet(), stateModelDef, newIdealState
.getParticipantStateMap(partitionId), currentState.getCurrentStateMap(resourceId,
partitionId), disabledParticipants, idealState.isEnabled());
assignment.addReplicaMap(partitionId, replicaMap);
}
} else {
// other modes use auto assignment
Map<State, String> upperBounds =
ConstraintBasedAssignment