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) (#46196)

close #46073
  • Loading branch information
ti-chi-bot committed Oct 10, 2023
1 parent 5592aec commit c349b18
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 c349b18

Please sign in to comment.