Skip to content

Commit

Permalink
Failed retries of failback should be judged first (#8715) (#8719)
Browse files Browse the repository at this point in the history
  • Loading branch information
icankeep committed Sep 11, 2021
1 parent b1ebfe8 commit a09cece
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -107,7 +107,9 @@ protected Result doInvoke(Invocation invocation, List<Invoker<T>> invokers, Load
} catch (Throwable e) {
logger.error("Failback to invoke method " + invocation.getMethodName() + ", wait for retry in background. Ignored exception: "
+ e.getMessage() + ", ", e);
addFailed(loadbalance, invocation, invokers, invoker, consumerUrl);
if (retries > 0) {
addFailed(loadbalance, invocation, invokers, invoker, consumerUrl);
}
return AsyncRpcResult.newDefaultAsyncResult(null, null, invocation); // ignore
}
}
Expand Down

0 comments on commit a09cece

Please sign in to comment.