zrlw commented on issue #8895:
URL: https://github.com/apache/dubbo/issues/8895#issuecomment-926997602
@owen200008
我用 #8880 (使用了内置zk)的测试案例跟踪了一下,CommuLink.close先去调用了zk的unregister方法,调用过程如下:
ZookeeperRegistry(AbstractRegistry).unregister(URL) line: 295
ZookeeperRegistry(FailbackRegistry).unregister(URL) line: 250
ListenerRegistryWrapper.unregister(URL) line: 81
RegistryDirectory<T>(DynamicDirectory<T>).destroy() line: 233
FailoverClusterInvoker<T>(AbstractClusterInvoker<T>).destroy() line:
112
AbstractCluster$InterceptorInvokerNode<T>.destroy() line: 118
MockClusterInvoker<T>.destroy() line: 78
MigrationInvoker<T>.destroy() line: 192
MigrationInvoker<T>(Invoker<T>).destroyAll() line: 50
CommuLink.close() line: 41
CommuLink.main(String[]) line: 63
然后才去调用DubboInvoker的close方法,所以没有重新你说的问题2。
dubbo集成测试使用的代码是dubbo-samples, 建议你看一下 https://github.com/apache/dubbo-samples,
然后参照 #8880
所说的方法新增一个用于验证你的问题的集成测试案例,只是如果用nacos,你还需要先启动一个nacos注册中心,通过集成测试案例本机debug调试确认问题比较快。
--
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]