zrlw commented on pull request #8872: URL: https://github.com/apache/dubbo/pull/8872#issuecomment-925664670
提醒一下,应用创建的invoker并不是全部的invoker,dubbo自己也会创建,比如RegistryDirectory, ServiceDiscoveryRegistryDirectory里面的urlInvokerMap,这些map里面的invoker是客户端收到注册中心服务变动通知时自动创建的,即使应用程序把自己创建的所有invoker都调了destroy(),但是还有RegistryDirectory, ServiceDiscoveryRegistryDirectory创建的invoker没有调用destroy(),Reference count还是大于0,close方法是不会实际调用的。 为了解决这个问题,才有了destroyAll()方法,虽然这样的实现也并不完美。 -- 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]
