Skip to content

Commit

Permalink
fix issue-8715 on master: failback retries=0 should only invoke once (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
changfubai committed Sep 11, 2021
1 parent abb2109 commit d3773a7
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -102,7 +102,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);
if (retries > 0) {
addFailed(loadbalance, invocation, invokers, invoker);
}
return AsyncRpcResult.newDefaultAsyncResult(null, null, invocation); // ignore
}
}
Expand Down

0 comments on commit d3773a7

Please sign in to comment.