Skip to content

Commit

Permalink
Merge pull request#2679, consumer throws RpcException when RegistryDi…
Browse files Browse the repository at this point in the history
…rectory notify in high QPS.

Fixes apache#2016
  • Loading branch information
beiwei30 authored and CrazyHZM committed Dec 6, 2018
1 parent abe1c9a commit 96e40c8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ public String toString() {

@Override
public Result invoke(Invocation inv) throws RpcException {
// if invoker is destroyed due to address refresh from registry, let's allow the current invoke to proceed
if (destroyed.get()) {
throw new RpcException("Rpc invoker for service " + this + " on consumer " + NetUtils.getLocalHost()
+ " use dubbo version " + Version.getVersion()
+ " is DESTROYED, can not be invoked any more!");
logger.warn("Invoker for service " + this + " on consumer " + NetUtils.getLocalHost() + " is destroyed, "
+ ", dubbo version is " + Version.getVersion() + ", this invoker should not be used any longer");
}
RpcInvocation invocation = (RpcInvocation) inv;
invocation.setInvoker(this);
Expand Down

0 comments on commit 96e40c8

Please sign in to comment.