Skip to content

Commit

Permalink
revert: 26f29ec
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyang733 committed Jun 12, 2023
1 parent 3d5cc5c commit 917a331
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.qcloud.cos</groupId>
<artifactId>hadoop-cos</artifactId>
<version>8.3.0</version>
<version>8.3.1</version>
<packaging>jar</packaging>

<name>Apache Hadoop Tencent Cloud COS Support</name>
Expand Down
15 changes: 1 addition & 14 deletions src/main/java/org/apache/hadoop/fs/CosNativeFileSystemStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -1884,20 +1884,7 @@ private <X> 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);
}
}
}
Expand Down

0 comments on commit 917a331

Please sign in to comment.