sandbox: Bound 503 retries and clarify the error#5578
Closed
anwell-db wants to merge 4 commits into
Closed
Conversation
A 503 from the /api/2.0/lakebox routes means the sandbox service is not deployed for the workspace's region, but the raw gateway error gives users no hint of that. Translate it at the API-wrapper level so every sandbox command reports the actual cause. Co-authored-by: Isaac
Contributor
Approval status: pending
|
The SDK retries 503s for up to five minutes, so in regions without the sandbox service every command hung before erroring. Counting attempts in the ErrorRetriable hook (rather than racing a context deadline) halts the retry loop with the real APIError, so the translated message is deterministic. Since a few transient 503s are still retried, the message hedges between region unavailability and a temporary outage. Co-authored-by: Isaac
Co-authored-by: Isaac
Co-authored-by: Isaac
Contributor
|
An authorized user can trigger integration tests manually by following the instructions below: Trigger: Inputs:
Checks will be approved automatically on success. |
Author
|
Replaced by #5582 (same change, in-repo branch). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Sandbox API requests retry a 503 at most 3 times, then report:
the Databricks Sandbox feature is not available in your region, or the service is temporarily unavailable.Retries are capped by count (a per-request counter consumed in the client's
ErrorRetriablehook) rather than a deadline, so the final 503 deterministically surfaces as the API error. Other errors keep the SDK's default retry behavior.Tests
This pull request and its description were written by Isaac.