Skip to content
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

Don't retry network requests that fail with code 403 #373

Merged
merged 2 commits into from
Mar 15, 2024

Conversation

susodapop
Copy link
Contributor

@susodapop susodapop commented Mar 15, 2024

Description

This adds a check to should_retry() which immediately raises an exception if a 403 code is received from Databricks and an associated test. Prior to this change, the connector would continue retrying until the retry counter was exceeded.

I think this has existed for some time but wasn't obvious to users until exponential backoff was implemented in #349. Because prior to #349, it would retry over and over again until it ran out of retries and then raise an exception. But now that backoff is in-force, it takes longer for it to exhaust the retry counter.

Related Tickets & Documents

Fixes these:

Signed-off-by: Jesse Whitehouse <jesse@whitehouse.dev>
Signed-off-by: Jesse Whitehouse <jesse@whitehouse.dev>
@benc-db
Copy link
Collaborator

benc-db commented Mar 15, 2024

looks good, running integration tests now.

@benc-db benc-db merged commit 1d4da9a into databricks:main Mar 15, 2024
13 checks passed
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