VanshajPoonia opened a new pull request, #933:
URL: https://github.com/apache/arrow-rs-object-store/pull/933

   # Which issue does this PR close?
   
   Closes #914.
   
   # Rationale for this change
   
   The retry loop retries every 5xx status. A 501 Not Implemented means the 
server does not support the request and a retry gets the same answer. The 
client only waits through the backoff before it returns the error.
   
   # What changes are included in this PR?
   
   A server error is retried unless it is `501 Not Implemented`. That status 
now returns a `Status` error on the first response. The change is one condition 
in `RetryableRequest::send` in `src/client/retry.rs`.
   
   A new test `test_not_implemented_no_retry` uses a fake `HttpService` that 
always answers 501 and counts its calls. It expects one call and a 
`RequestError::Status` error and fails on main with three calls.
   
   # Are there any user-facing changes?
   
   Yes, a 501 response is no longer retried. What happens now is that the 
caller gets the error right away and other 5xx statuses are retried as before. 
No API changes are made.
   
   # AI usage disclosure
   
   I used an AI assistant to write the fix and the test. I read the change and 
checked the test fails without it.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to