-
Notifications
You must be signed in to change notification settings - Fork 98
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
fix: Retry on database wait operation requests #790
fix: Retry on database wait operation requests #790
Conversation
d038734
to
4482785
Compare
/acctest sha=cc0f58708740afaef8cfc9a8727511604f8a8b97 pkg=linode/databasemysql |
/acctest sha=cc0f58708740afaef8cfc9a8727511604f8a8b97 pkg=linode/databasepostgresql |
/acctest sha=cc0f58708740afaef8cfc9a8727511604f8a8b97 pkg=linode/databaseaccesscontrols |
/acctest sha=cc0f58708740afaef8cfc9a8727511604f8a8b97 pkg=linode/... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
/acctest sha=0202d41a6742d78f56845b1f04f73916221bf6f8 pkg=linode/... |
Wondering if we should use terraform-provider-linode/linode/provider.go Line 271 in c859258
terraform-provider-linode/linode/provider.go Line 134 in c859258
But since I can't find where these config values were used anywhere else, maybe we can just remove these config values from config schema instead? Was there any historic context info regarding these config? |
That's a good point! It'd probably be a good idea to keep retry timings configurable.
These configs are passed into the linodego client and are used for retrying on 408 responses, etc.:
They're generally used to fine-tune API load for operations that might run into a lot of 408s (instance provisioning, etc.) Hope that clears things up! |
@lgarber-akamai Thank you for the context info! |
0202d41
to
b1bc05d
Compare
/acctest sha=c618f5abff8b851ae1703940ff75e04640bd24e1 pkg=linode/... |
📝 Description
This change alters the status polling logic in database-related resources to retry on
502
responses from the API within a certain tolerance. For the databases service, these errors do not necessarily reflect an internal error and instead may be the result of a transient error. This should significantly improve E2E test reliability.Blocked by linode/linodego#319
✔️ How to Test