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); } } }