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

xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new 03ea5837e chore: support more error codes for S3-compatible services 
(#6651)
03ea5837e is described below

commit 03ea5837e682c3da27277038bb8d20c742e2a164
Author: Yu Lei <[email protected]>
AuthorDate: Mon Oct 13 11:23:53 2025 +0800

    chore: support more error codes for S3-compatible services (#6651)
    
    compatible error codes
---
 core/src/services/s3/error.rs | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/core/src/services/s3/error.rs b/core/src/services/s3/error.rs
index 1515947e5..381e7c5d9 100644
--- a/core/src/services/s3/error.rs
+++ b/core/src/services/s3/error.rs
@@ -119,6 +119,15 @@ pub fn parse_s3_error_code(code: &str) -> 
Option<(ErrorKind, bool)> {
         //
         // It's Ok to retry since later on the request rate may get reduced.
         "TooManyRequests" => Some((ErrorKind::RateLimited, true)),
+        // > Compatibility with Volcengine TOS
+        //
+        // TOS returns following error codes along with 429 status code, while 
both
+        // of them indicate rate limit exceeded.
+        // See https://www.volcengine.com/docs/6349/74874 for more details.
+        "ExceedAccountQPSLimit"
+        | "ExceedAccountRateLimit"
+        | "ExceedBucketQPSLimit"
+        | "ExceedBucketRateLimit" => Some((ErrorKind::RateLimited, true)),
         _ => None,
     }
 }

Reply via email to