chickenlj commented on issue #9623:
URL: https://github.com/apache/dubbo/issues/9623#issuecomment-1043860035
> 大致过程是
provider优雅下线后,consumer在接收到下线事件后,会在类org.apache.dubbo.registry.client.ServiceDiscoveryRegistryDirectory的refreshInvoker方法直接返回
>
> ```
> this.forbidden = false; // Allow accessing
> if (CollectionUtils.isEmpty(invokerUrls)) {
> logger.warn("Received empty url list, will ignore for
protection purpose.");
> return;
> }
> ```
>
> 后续就开始无限循环HeaderExchangeClient了,直到provider重新发布启动
>
> 这里的保护是为了保护什么情况?
默认会触发空地址推送保护,目的是为了防止生产环境误下线机器导致服务不可用。
开发环境,可通过配置关闭推空保护,即使不关闭也不影响最终测试效果,只是从空地址异常变为链接异常。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]