You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@dubbo.apache.org by GitBox <gi...@apache.org> on 2018/03/21 10:55:02 UTC

[GitHub] paopaoteng opened a new issue #1498: ���������������������RpcException(Forbid consumer)������mock������

paopaoteng opened a new issue #1498: 服务端崩溃,报RpcException(Forbid consumer)时,mock无效
URL: https://github.com/apache/incubator-dubbo/issues/1498
 
 
   在xml文件里配置<dubbo:reference  id="service"    interface="com.xxx.service.publicInfo.ISystemConfigService" check="false" mock="com.xxx.service.publicInfo.SystemConfigServiceMock" />
   当服务端全部挂掉时,客户端调用服务报Forbid consumer的RpcException,此时Mock没有生效。
   看源码是RegistryDirectory.refreshInvoker中将forbidden修改为true,此时mock也会报同样的错误。

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services