Skip to content

Commit

Permalink
Merge pull request #96716 from cockroachdb/blathers/backport-release-…
Browse files Browse the repository at this point in the history
…22.2-96673

release-22.2: backup: fail instead of pausing when out of retries
  • Loading branch information
dt authored Feb 21, 2023
2 parents 31eb3ce + 81ddb9c commit c390c0c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions pkg/ccl/backupccl/backup_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -668,14 +668,12 @@ func (b *backupResumer) Resume(ctx context.Context, execCtx interface{}) error {
}
}

// We have exhausted retries, but we have not seen a "PermanentBulkJobError" so
// it is possible that this is a transient error that is taking longer than
// our configured retry to go away.
//
// Let's pause the job instead of failing it so that the user can decide
// whether to resume it or cancel it.
// We have exhausted retries without getting a "PermanentBulkJobError", but
// something must be wrong if we keep seeing errors so give up and fail to
// ensure that any alerting on failures is triggered and that any subsequent
// schedule runs are not blocked.
if err != nil {
return jobs.MarkPauseRequestError(errors.Wrap(err, "exhausted retries"))
return errors.Wrap(err, "exhausted retries")
}

var backupDetails jobspb.BackupDetails
Expand Down

0 comments on commit c390c0c

Please sign in to comment.