You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by su...@apache.org on 2023/07/07 10:22:19 UTC

[incubator-opendal] branch dropbox-batch-delete updated: add too_many_write_operations as retriable

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 <su...@gmail.com>
AuthorDate: Fri Jul 7 18:21:50 2023 +0800

    add too_many_write_operations as retriable
    
    Signed-off-by: suyanhanx <su...@gmail.com>
---
 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
     }