This is an automated email from the ASF dual-hosted git repository.

suyanhanx pushed a commit to branch dropbox-batch-delete
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git


The following commit(s) were added to refs/heads/dropbox-batch-delete by this 
push:
     new 706dd8509 add too_many_write_operations as retriable
706dd8509 is described below

commit 706dd850946f6577da9cbc23155c1118b6742ade
Author: suyanhanx <[email protected]>
AuthorDate: Fri Jul 7 18:21:50 2023 +0800

    add too_many_write_operations as retriable
    
    Signed-off-by: suyanhanx <[email protected]>
---
 core/src/services/dropbox/error.rs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/core/src/services/dropbox/error.rs 
b/core/src/services/dropbox/error.rs
index 8a00176bc..b27722636 100644
--- a/core/src/services/dropbox/error.rs
+++ b/core/src/services/dropbox/error.rs
@@ -78,6 +78,8 @@ pub fn parse_dropbox_error_summary(summary: &str) -> 
Option<(ErrorKind, bool)> {
         Some((ErrorKind::NotFound, false))
     } else if summary.starts_with("path/conflict") {
         Some((ErrorKind::AlreadyExists, false))
+    } else if summary.starts_with("too_many_write_operations") {
+        Some((ErrorKind::RateLimited, true))
     } else {
         None
     }

Reply via email to