Skip to content

Commit

Permalink
feat: Complete the log information of retry backoff.
Browse files Browse the repository at this point in the history
Signed-off-by: Yang Yu <yuyang_733@163.com>
  • Loading branch information
yuyang733 committed Nov 28, 2023
1 parent bcfef8b commit c821406
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1816,7 +1816,6 @@ private <X> Object callCOSClientWithRetry(X request) throws CosServiceException,
}
} else if (statusCode / 100 == 5) {
if (retryIndex <= this.maxRetryTimes) {

if (statusCode == 503) {
if (useL5Id) {
if (l5ErrorCodeRetryIndex >= this.l5UpdateMaxRetryTimes) {
Expand Down Expand Up @@ -1869,7 +1868,7 @@ private <X> 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;
Expand Down

0 comments on commit c821406

Please sign in to comment.