Skip to content

Conversation

@Drvi
Copy link
Member

@Drvi Drvi commented Dec 17, 2023

This adds tests for retry logic based on Azure docs:

Current behaviour is to retry 5** error codes (server errors) and not retry 4** error codes (client errors).

For RAICode, we use up to 15 minutes of retries so we need to be picky about when retrying makes sense... so only 5** codes is probably a good starting point. But we should consider (in future) if we should retry 429 error code (throttling error) and respecting Retry-After header if set.

end

@testset "429: Too Many Requests" begin
# TODO: We probably should respect the Retry-After header, but we currently don't
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this something that HTTP.jl handles now? This might be a high priority thing for us to implement.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, i think this is the only one to decide on... currently we're not retrying 429 at all, but arguably we should be (and if so, should be respecting the Retry-After header if set)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'll leave this to a follow-up PR, if/when we have more info about if we need to support this at all and if it's best done inthe ObjectStore.jl repo (rather than the application itself)

@nickrobinson251 nickrobinson251 force-pushed the td-even-more-exception-tests branch from 6de33c2 to f980233 Compare December 19, 2023 17:29
@nickrobinson251 nickrobinson251 force-pushed the td-even-more-exception-tests branch from 5bf33d0 to f7c1b93 Compare December 20, 2023 16:02
@nickrobinson251 nickrobinson251 force-pushed the td-even-more-exception-tests branch from 25679fe to ed43a99 Compare December 20, 2023 16:08
@nickrobinson251
Copy link
Member

@jfunstonRAI please can you take a look?

@nickrobinson251 nickrobinson251 merged commit b415021 into main Dec 20, 2023
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.

3 participants