Skip to content

Commit

Permalink
sql: autoretry transactions on IsSQLRetryableErrors
Browse files Browse the repository at this point in the history
Informs: #102839
Release note: None
  • Loading branch information
michae2 committed Aug 10, 2023
1 parent bfcc406 commit 58f7f12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/sql/conn_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -3281,7 +3281,8 @@ func errIsRetriable(err error) bool {
// client in implicit transactions. This is not great; it should
// be marked as a client visible retry error.
errors.Is(err, descidgen.ErrDescIDSequenceMigrationInProgress) ||
descs.IsTwoVersionInvariantViolationError(err)
descs.IsTwoVersionInvariantViolationError(err) ||
pgerror.IsSQLRetryableError(err)
}

// convertRetriableErrorIntoUserVisibleError converts internal retriable
Expand Down

0 comments on commit 58f7f12

Please sign in to comment.