Open TerryLam2010 opened 1 day ago
Normally it will be also notifyed by RegistryDirectory, because it is dual registration(interface & instance). when all of them finished destory, the count of ReferenceCountExchangeClient will be zero, so it will be destory.
@laywin That is now the Destory of the ServiceDisCoveryRegistrydirectory, but the Destroyunovokers triggered by the registryDirectory did not print the destruction log. That is, nowadays, all INVOKEER destroyed. ReferenceCountexchangeClient's counter is not 0, and it will not netty client close. How should I check why it is not ruined? Intersection Normally, ServiceDiscoveryRegistryDirectory and RegistryDirectory will be triggered? Or is there any ready -made case for reference? —————————————————————————————————————————————————————— 那现在就是触发了ServiceDiscoveryRegistryDirectory的destory,但是在RegistryDirectory触发的destroyUnusedInvokers 却没有打印销毁日志。那就是现在没有调用完所有invokeer销毁,ReferenceCountExchangeClient的计数器不为0,就不会netty client close. 我应该怎么排查为什么会没有销毁完呢??正常来说ServiceDiscoveryRegistryDirectory和RegistryDirectory都会被触发吧?或者有什么现成的案例提供参考?
when provider shutdown, in consumer side you can watch the network connect (netstat -apn | grep 20880)
Pre-check
Search before asking
Apache Dubbo Component
Java SDK (apache/dubbo)
Dubbo Version
Dubbo Java: 3.2.3 JDK8 Use K8s
Steps to reproduce this issue
Provider and Consumer config: