From c8214061576a267ee0638c0a71985471e28c74d8 Mon Sep 17 00:00:00 2001 From: Yang Yu Date: Tue, 28 Nov 2023 20:46:50 +0800 Subject: [PATCH] feat: Complete the log information of retry backoff. Signed-off-by: Yang Yu --- .../java/org/apache/hadoop/fs/CosNativeFileSystemStore.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/apache/hadoop/fs/CosNativeFileSystemStore.java b/src/main/java/org/apache/hadoop/fs/CosNativeFileSystemStore.java index b55f9ae6..bb0c9cbc 100644 --- a/src/main/java/org/apache/hadoop/fs/CosNativeFileSystemStore.java +++ b/src/main/java/org/apache/hadoop/fs/CosNativeFileSystemStore.java @@ -1816,7 +1816,6 @@ private Object callCOSClientWithRetry(X request) throws CosServiceException, } } else if (statusCode / 100 == 5) { if (retryIndex <= this.maxRetryTimes) { - if (statusCode == 503) { if (useL5Id) { if (l5ErrorCodeRetryIndex >= this.l5UpdateMaxRetryTimes) { @@ -1869,7 +1868,7 @@ private Object callCOSClientWithRetry(X request) throws CosServiceException, return new CompleteMultipartUploadResult(); } } - + LOG.info("Ready to retry [{}], wait time: [{} - {}] ms", retryIndex, sleepLeast, sleepBound); Thread.sleep( ThreadLocalRandom.current().nextLong(sleepLeast, sleepBound)); ++retryIndex;