You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/09/14 11:47:22 UTC

[GitHub] [dubbo] zrlw edited a comment on issue #8752: 一个消费端包含多个引用同一服务接口的DubboReference时,ReconnectTimerTask任务在服务端修订地址端口重新注册后仍然不断尝试连接旧地址

zrlw edited a comment on issue #8752:
URL: https://github.com/apache/dubbo/issues/8752#issuecomment-919070986


   referenceCount 应该和 DubboInvoker 实例的数量相等,只是你看看ServiceDiscoveryRegistryDirectory的urlInvokerMap结构,你就明白了。
   这个map是当client收到注册中心notify时对URL相关的invoker进行更新的,key是URL,value是这个URL对应的其中一个invoker,但是这个URL对应的invoker并不都是由ServiceDiscoveryRegistryDirectory创建的,当初我曾尝试过把这个map的value搞成set集合,但是发现要伤筋动骨大改,涉及的内容太多了,就退回来搞了个destryAll。


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org