luma-shangma commented on code in PR #929:
URL: 
https://github.com/apache/arrow-rs-object-store/pull/929#discussion_r4803986628


##########
src/aws/client.rs:
##########
@@ -131,6 +132,16 @@ impl From<Error> for crate::Error {
         match err {
             Error::CompleteMultipartRequest { source, path } => 
source.error(STORE, path),
             Error::DeleteObjectsRequest { source, paths } => 
source.error(STORE, paths.join(",")),
+            Error::DeleteFailed {
+                ref path, ref code, ..
+            } if is_throttle_code(code) => Self::Throttled {

Review Comment:
   DeleteFailed is the only variant carrying a provider code such as SlowDown. 
The other variants are request errors already handled by RetryError, or 
body/parsing errors that shouldn’t be classified as throttling.



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