Skip to content

[0.3] RetryHttpClient to enable Retry for UC. - #1211

Merged
tdas merged 1 commit into
unitycatalog:branch-0.3from
openinx:backport-1145
Nov 14, 2025
Merged

tdas merged 1 commit into
unitycatalog:branch-0.3from
openinx:backport-1145

Conversation

@openinx

@openinx openinx commented Nov 14, 2025

Copy link
Copy Markdown
Collaborator

PR Checklist

  • A description of the changes is added to the description of this PR.
  • If there is a related issue, make sure it is linked to this PR.
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added or modified a feature, documentation in docs is updated

Description of changes

Backport PR change of issue to branch-0.3
The whole backport progress is here: #1163

Original author is: TimothyW553 [email protected]
Original pull request is: #1145

**PR Checklist**

- [ ] A description of the changes is added to the description of this
PR.
- [ ] If there is a related issue, make sure it is linked to this PR.
- [ ] If you've fixed a bug or added code that should be tested, add
tests!
- [ ] If you've added or modified a feature, documentation in `docs` is
updated

**Description of changes**

Instead of wrapping each type of Api such as TempCredsApi or TablesApi
with a "Retryable" version, we instead create our own
RetryableHttpClient and retry at the http level. This way, new Apis just
need to pass the necessary configuration to the ApiClientFactory, which
creates a RetryingApiClient, which then creates a RetryingHttpClient.
The user may pass in a custom interceptor -- a function that defines
under which error codes, status codes, and exception they would want the
ApiClient to retry.

Original author is: TimothyW553 <[email protected]>
Original pull request is: unitycatalog#1145

---------

Signed-off-by: TimothyW553 <[email protected]>
Signed-off-by: Timothy Wang <[email protected]>
Signed-off-by: Zheng Hu <[email protected]>
@tdas
tdas merged commit d4ee756 into unitycatalog:branch-0.3 Nov 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants