Skip to content

Commit

Permalink
feat(bigquery/storage/managedwriter): retry on FailedPrecondition (#6761
Browse files Browse the repository at this point in the history
)

Per guidance from backend team, include FailedPrecondition as part
of the allowed retry.
  • Loading branch information
shollyman committed Sep 28, 2022
1 parent 6c384c5 commit d1a444d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bigquery/storage/managedwriter/retry.go
Expand Up @@ -52,6 +52,7 @@ func retryPredicate(err error) (shouldRetry, aggressiveBackoff bool) {
case codes.Aborted,
codes.Canceled,
codes.DeadlineExceeded,
codes.FailedPrecondition,
codes.Internal,
codes.Unavailable:
shouldRetry = true
Expand Down

0 comments on commit d1a444d

Please sign in to comment.