Skip to content

Commit

Permalink
br: avoid possible infinite loop checking tikv gc and scheduling stat…
Browse files Browse the repository at this point in the history
…us (#46078) (#46195)

close #46073
  • Loading branch information
ti-chi-bot authored Aug 17, 2023
1 parent 89f8269 commit eb27d90
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions br/pkg/task/backup_ebs.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,13 +295,13 @@ func waitAllScheduleStoppedAndNoRegionHole(ctx context.Context, cfg Config, mgr
} else {
log.Warn("failed to wait schedule, will retry later", zap.Error(err2))
}
continue
}

log.Info("all leader regions got, start checking hole", zap.Int("len", len(allRegions)))
} else {
log.Info("all leader regions got, start checking hole", zap.Int("len", len(allRegions)))

if !isRegionsHasHole(allRegions) {
return nil
if !isRegionsHasHole(allRegions) {
return nil
}
log.Info("Regions has hole, needs sleep and retry")
}
time.Sleep(backoffer.ExponentialBackoff())
}
Expand Down

0 comments on commit eb27d90

Please sign in to comment.