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/10 02:14:40 UTC

[GitHub] [dubbo] YsoulM commented on issue #8748: Consumer一直重连(Reconnect)已经下线的(destroyed)provider

YsoulM commented on issue #8748:
URL: https://github.com/apache/dubbo/issues/8748#issuecomment-916578086


   @zrlw 我这边调试了下,provider在优雅下线后,consumer针对这个provider的ReferenceCountExchangeClient实例会对其所有接口分别referenceCount减1。但是consumer针对这个provider的MetadataService没有进行销毁,或者销毁的时候没有触发referenceCount减1,导致这个referenceCount永远大于1,不能触发ExchangeClient的close方法。
   然后每次ReconnectTimerTask都会扫描到,导致报错。
   
   修改为<1,是忽略掉了MetadataService的销毁流程,测试环境测试,已经不报错了。
   
   还有一种方案,MetadataService也触发销毁,或者在原有的销毁中也触发referenceCount减1。 但是这个方案估计比较复杂,时间有点来不急。。


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