-
Notifications
You must be signed in to change notification settings - Fork 398
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
[Internal] Retry on 504 when calling the permission API #4355
Conversation
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.
LGTM. Do we want to stub out a 504 in resource_permissions_test.go
and verify the retry is kicking in there?
If integration tests don't run automatically, an authorized user can run them manually by following the instructions below: Trigger: Inputs:
Checks will be approved automatically on success. |
Test Details: go/deco-tests/12518392447 |
Agreed, done. |
### Bug Fixes * Reflect backend updates in state for databricks_app ([#4337](#4337)). ### Documentation * Update `databricks_workspace_conf` documentation ([#4334](#4334)). * apply `make fmt-docs` to all docs ([#4344](#4344)). ### Internal Changes * Generate both SdkV2-compatible and Plugin Framework-compatible structures ([#4332](#4332)). * Mark TestAccServicePrincipalResourceOnAzure test as flaky ([#4333](#4333)). * Retry on 504 when calling the permission API ([#4355](#4355)).
### Bug Fixes * Reflect backend updates in state for databricks_app ([#4337](#4337)). ### Documentation * Update `databricks_workspace_conf` documentation ([#4334](#4334)). * apply `make fmt-docs` to all docs ([#4344](#4344)). ### Internal Changes * Generate both SdkV2-compatible and Plugin Framework-compatible structures ([#4332](#4332)). * Mark TestAccServicePrincipalResourceOnAzure test as flaky ([#4333](#4333)). * Retry on 504 when calling the permission API ([#4355](#4355)).
### Bug Fixes * Reflect backend updates in state for databricks_app ([#4337](#4337)). ### Documentation * Update `databricks_workspace_conf` documentation ([#4334](#4334)). * apply `make fmt-docs` to all docs ([#4344](#4344)). ### Internal Changes * Generate both SdkV2-compatible and Plugin Framework-compatible structures ([#4332](#4332)). * Mark TestAccServicePrincipalResourceOnAzure test as flaky ([#4333](#4333)). * Retry on 504 when calling the permission API ([#4355](#4355)).
Changes
This PR adds logic to retry failed get calls to the permissions API when the error is a 504. This solution is meant to be temporary and will be removed as soon as such retries are handled natively in the Databricks Go SDK.
Tests
Complete coverage of the added retrier.