wolfv opened a new issue, #6741:
URL: https://github.com/apache/opendal/issues/6741

   ### Describe the bug
   
   The S3 documentation states:
   
   If-None-Match - Uploads the object only if the object key name does not 
already exist in the specified bucket. Otherwise, Amazon S3 returns a 412 
Precondition Failed error. If a conflicting operation occurs during the upload, 
S3 returns a 409 ConditionalRequestConflict response. **On a 409 failure, retry 
the upload.**
   
   I read the source code and the `409` response is not specially handled, and 
retryable is not true.
   
   Should this be handled as retryable?
   
   With some guidance I could try to make a PR.
   
   ### Steps to Reproduce
   
   I am not entirely sure how to reliably trigger a 409 response from S3 but we 
had someone hit it when doing many operations in parallel.
   
   ### Expected Behavior
   
   Retry on 409.
   
   ### Additional Context
   
   _No response_
   
   ### Are you willing to submit a PR to fix this bug?
   
   - [x] Yes, I would like to submit a PR.


-- 
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