From 917a3319cbdab9296d3ccfd2d0767b34bf4c7335 Mon Sep 17 00:00:00 2001 From: Yang Yu Date: Mon, 12 Jun 2023 23:55:36 +0800 Subject: [PATCH] revert: 26f29ecdb2eb6a4eb370505f529fed47b2c5918f --- pom.xml | 2 +- .../hadoop/fs/CosNativeFileSystemStore.java | 15 +-------------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/pom.xml b/pom.xml index d81aaacd..92ed4fe7 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.qcloud.cos hadoop-cos - 8.3.0 + 8.3.1 jar Apache Hadoop Tencent Cloud COS Support diff --git a/src/main/java/org/apache/hadoop/fs/CosNativeFileSystemStore.java b/src/main/java/org/apache/hadoop/fs/CosNativeFileSystemStore.java index 50d3cfa4..b55f9ae6 100644 --- a/src/main/java/org/apache/hadoop/fs/CosNativeFileSystemStore.java +++ b/src/main/java/org/apache/hadoop/fs/CosNativeFileSystemStore.java @@ -1884,20 +1884,7 @@ private Object callCOSClientWithRetry(X request) throws CosServiceException, throw cse; } } catch (Exception e) { - if (useL5Id) { - if (l5ErrorCodeRetryIndex >= this.l5UpdateMaxRetryTimes) { - // L5上报,进行重试 - l5EndpointResolver.handle(-1, 0); - l5ErrorCodeRetryIndex = 1; - } else { - l5ErrorCodeRetryIndex = l5ErrorCodeRetryIndex + 1; - } - } - if (retryIndex > this.maxRetryTimes) { - throw new IOException(e); - } else { - ++retryIndex; - } + throw new IOException(e); } } }