zrlw commented 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,所以只能操作一个invoker,当初我曾尝试过把这个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: [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]
