Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

fix checking status codes for failure #766

Merged
4 commits merged into from
Apr 3, 2021

Conversation

bmc-msft
Copy link
Contributor

@bmc-msft bmc-msft commented Apr 2, 2021

This fixes retrying on bad status codes.

Note, this adds support to specify specific error codes as "successful". This is important for the If-None-Match conditional upload case (blob uploading). The response we get back is 409 (Conflict).

Previously, we would "fail fast" the 409. However, what we want is "409 is basically success here" and every other call 409 should be a failure.

@bmc-msft bmc-msft requested a review from chkeita April 2, 2021 23:38
@bmc-msft bmc-msft requested a review from chkeita April 3, 2021 00:41
@bmc-msft bmc-msft requested a review from chkeita April 3, 2021 03:10
@ghost
Copy link

ghost commented Apr 3, 2021

Hello @bmc-msft!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 2aea006 into microsoft:main Apr 3, 2021
@bmc-msft bmc-msft deleted the retry-status-failure branch April 3, 2021 20:13
@ghost ghost locked as resolved and limited conversation to collaborators May 4, 2021
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants