Skip to content

Commit

Permalink
fix: remove 2 retry errors since they may never happened
Browse files Browse the repository at this point in the history
  • Loading branch information
fengou1 committed Feb 6, 2023
1 parent 6b51e7e commit c162665
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions br/pkg/utils/backoff.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,6 @@ func (bo *flashbackBackoffer) NextBackoff(err error) time.Duration {
} else {
e := errors.Cause(err)
switch e { // nolint:errorlint
case berrors.ErrKVEpochNotMatch, berrors.ErrPDLeaderNotFound:
bo.delayTime = 2 * bo.delayTime
bo.attempt--
case berrors.ErrKVRangeIsEmpty, berrors.ErrKVRewriteRuleNotFound:
// Excepted error, finish the operation
bo.delayTime = 0
Expand Down

0 comments on commit c162665

Please sign in to comment.