-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sql,pgerror: improve IsSQLRetryableError and IsDistSQLRetryable #82847
Comments
https://cockroachlabs.slack.com/archives/C0HM2DZ34/p1655150171201549 contains some internal discussion on the topic. |
@dt's summary:
|
I think that summary is somewhat orthogonal to this issue; it is something of an aside related to retry responsibility of jobs. The function here is not generic for the whole job system, it's just used by a couple of jobs to decide whether whether to move to the failed state or not. |
Describe the problem
The string error matching is brittle. The goals are good. Retrying when an error might be permanent no longer hurts in the way it once did: jobs use exponential backoff and record a log of failures. The user can cancel a job if the system makes the wrong decision systematically.
cockroach/pkg/sql/pgwire/pgerror/errors.go
Lines 164 to 166 in da4f6a4
Jira issue: CRDB-16692
The text was updated successfully, but these errors were encountered: