fsx379 commented on issue #13667:
URL: https://github.com/apache/dubbo/issues/13667#issuecomment-1899567903

   > After provider shutdown, the data will be pushed to consumer and 
`HeaderExchangeClient` and `LazyConnectExchangeClient` should be destroyed.
   
   从代码看,关键是consumer端的 DubboProtocol#referenceClientMap 会缓存历史的 
ReferenceCountExchangeClient。
   (1)consumer 重启才会走destroy,清理 referenceClientMap 
   (2)provider 关闭,consumer 调用的是close 操作关闭连接,不会清理referenceClientMap中的 
client对象(replaceWithLazyClient 对象) ,故导致provider启动后后,获取缓存中的client 是 lazy模式,且url 
参数都是历史缓存的。


-- 
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]

Reply via email to