You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by ho...@apache.org on 2024/02/05 04:24:44 UTC

(opendal) branch fix-chainsafe-423 updated (d3fa53ec1e -> 2cf0cd777c)

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

hoslo pushed a change to branch fix-chainsafe-423
in repository https://gitbox.apache.org/repos/asf/opendal.git


 discard d3fa53ec1e fix(services/chainsafe): fix 423 http status
     add 1b3c95fd7a ci: Migrate hdfs default setup (#4140)
     new 2cf0cd777c fix(services/chainsafe): fix 423 http status

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (d3fa53ec1e)
            \
             N -- N -- N   refs/heads/fix-chainsafe-423 (2cf0cd777c)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .github/scripts/test_behavior/plan.py | 4 ++++
 1 file changed, 4 insertions(+)


(opendal) 01/01: fix(services/chainsafe): fix 423 http status

Posted by ho...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hoslo pushed a commit to branch fix-chainsafe-423
in repository https://gitbox.apache.org/repos/asf/opendal.git

commit 2cf0cd777c4fe09fa94c72113a3516d0b137d300
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Mon Feb 5 11:35:12 2024 +0800

    fix(services/chainsafe): fix 423 http status
---
 core/src/services/chainsafe/error.rs | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/core/src/services/chainsafe/error.rs b/core/src/services/chainsafe/error.rs
index 5df3cebb3c..f998b625a4 100644
--- a/core/src/services/chainsafe/error.rs
+++ b/core/src/services/chainsafe/error.rs
@@ -46,6 +46,10 @@ pub async fn parse_error(resp: Response<IncomingAsyncBody>) -> Result<Error> {
         401 | 403 => (ErrorKind::PermissionDenied, false),
         404 => (ErrorKind::NotFound, false),
         304 | 412 => (ErrorKind::ConditionNotMatch, false),
+        // https://github.com/apache/opendal/issues/4146
+        // https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/423
+        // We should retry it when we get 423 error.
+        423 => (ErrorKind::RateLimited, true),
         // Service like Upyun could return 499 error with a message like:
         // Client Disconnect, we should retry it.
         499 => (ErrorKind::Unexpected, true),