Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private <T> void recursiveAsyncRetry(Consumer<Callback<T>> call, Predicate<Throw
int currAttempts = attempts + 1;
if (currAttempts < policy.maxAttempts() && isRetriable.test(exception)) {
int waitTimeMs = policy.waitTimeMs(currAttempts);
logger.info("{} of {} attempts failed, will keep retrying after a {} ms backoff. exception='{}'",
logger.trace("{} of {} attempts failed, will keep retrying after a {} ms backoff. exception='{}'",
currAttempts, policy.maxAttempts(), waitTimeMs, exception);
//Don't need the scheduler if no need to wait for retry and show warn message if scheduler is null but wait time larger than 0;
if (scheduler == null) {
Expand All @@ -78,7 +78,7 @@ private <T> void recursiveAsyncRetry(Consumer<Callback<T>> call, Predicate<Throw
waitTimeMs, TimeUnit.MILLISECONDS);
}
} else {
logger.info("{} of {} attempts failed, completing operation. See exception below:", currAttempts,
logger.trace("{} of {} attempts failed, completing operation. See exception below:", currAttempts,
policy.maxAttempts(), exception);
userCallback.onCompletion(null, exception);
}
Expand Down
Loading
Loading