Skip to content

Commit

Permalink
cluster: ignore error when increasing schedule limit during upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
AstroProfundis committed May 12, 2021
1 parent b1b03c9 commit c330e77
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/cluster/operation/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ func Upgrade(
pdClient := api.NewPDClient(topo.(*spec.Specification).GetPDList(), 10*time.Second, tlsCfg)
origLeaderScheduleLimit, origRegionScheduleLimit, err = increaseScheduleLimit(ctx, pdClient)
if err != nil {
return err
// the config modifing error should be able to be safely ignored, as it will
// be processed with current settings anyway.
log.Warnf("failed increasing schedule limit: %s, ignore", err)
continue
}
defer func() {
upgErr := decreaseScheduleLimit(pdClient, origLeaderScheduleLimit, origRegionScheduleLimit)
Expand Down

0 comments on commit c330e77

Please sign in to comment.