Reenable check each server must have at least 1 team

This commit is contained in:
Meng Xu 2019-07-11 17:58:14 -07:00
parent bb758c18ee
commit cd28a0b604
1 changed files with 1 additions and 1 deletions

View File

@ -319,7 +319,7 @@ ACTOR Future<bool> getTeamCollectionValid(Database cx, WorkerInterface dataDistr
// We ensure each server (machine) has at least 1 team if
if ((!SERVER_KNOBS->TR_FLAG_DISABLE_MACHINE_TEAM_REMOVER && healthyMachineTeamCount > desiredMachineTeamNumber) ||
(!SERVER_KNOBS->TR_FLAG_DISABLE_SERVER_TEAM_REMOVER && currentTeamNumber > desiredTeamNumber) ||
(minMachineTeamOnMachine <= 0 && SERVER_KNOBS->DESIRED_TEAMS_PER_SERVER == 3)) {
((minMachineTeamOnMachine <= 0 || minServerTeamOnServer <= 0) && SERVER_KNOBS->DESIRED_TEAMS_PER_SERVER == 3)) {
if (attempts++ < 10) {
wait(delay(60));
continue; // We may not receive the most recent TeamCollectionInfo