zrlw edited a comment on issue #8821: URL: https://github.com/apache/dubbo/issues/8821#issuecomment-966311959
1. 调用org.apache.curator.framework.imps.CreateBuilderImpl.forPath创建path时才会触发服务端ADDED事件,此时CreateBuilderImpl.forPath传给服务端的data是CuratorFrameworkFactory的defaultData,值是localAddress(本机地址),所以事件内容为forPath调用者IP。 2. AbstractConfiguratorListener目前dubbo只是处理Registry才使用(具体是org.apache.dubbo.registry.integration.RegistryProtocol、 org.apache.dubbo.registry.integration.RegistryDirectory、org.apache.dubbo.registry.client.ServiceDiscoveryRegistryDirectory三个类的内部listener类),功能是解析服务实例的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]
