-
Notifications
You must be signed in to change notification settings - Fork 1.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
Resources that throw 409 due to naming conflicts are being retried excessively #3279
Comments
I wonder if we could use the error type / message to mark a specific kind of 409 as retriable or not. |
I'm not a fan of using an error message string to drive functionality as it's prone to changing and shouldn't be considered part of the api's interface. IIRC the sql 409 that we were attempting to retry was pretty generic, which is too bad because I'd much rather opt-in to retrying 4**'s than opt-out. |
🤔 I'm not sure how safe it will be, but we might be able to rely on |
Just kidding - Looks like the Sql Error response is wrapped into a googleapis.error where it removes any of the fields that I feel comfortable relying on: When Sql instance is generated and we move away from the client library we'll have access to the raw response, but looks like for now the only choice we have is to string parse the error response 🤕 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Community Note
Description
Some resources throw 409 for retriable errors (sql_instance) but others like compute router throw 409's for things like name conflicts. Currently all 409's are retried but this results in name conflicts in compute router requiring 4 minutes of retries before the error is returned. 409's should be opt-in for retry logic instead of standard.
New or Affected Resource(s)
References
The text was updated successfully, but these errors were encountered: