zrlw edited a comment on issue #9239: URL: https://github.com/apache/dubbo/issues/9239#issuecomment-965926499
dubbo-samples-applevel-override的DemoServiceIT有通过UpgradeUtil.writeXxxRule()调用ZookeeperDynamicConfiguration.publishConfig(key, group, value)方法(最终调用的是doPublishConfig方法),跟了一下这个方法触发的事件只有consumer端的MigrationRuleListener在监听,并不涉及AbstractConfiguratorListener。 另外跟踪确认这个工程只有provider端在用AbstractConfiguratorListener监听zk事件,客户端调用zk.create并不会触发服务端的zk事件,客户端继续调用org.apache.curator.framework.imps.CreateBuilderImpl.forPath方法时才会触发服务端zk事件,其中触发服务端ADDED事件的时候,CreateBuilderImpl.forPath传给服务端的data是CuratorFrameworkFactory的defaultData,值是localAddress(本机地址),所以provider通过AbstractConfiguratorListener收到的事件content只是客户端的ip地址。 看起来dubbo consumer和provider的zk事件处理类是不一样的,所以AbstractConfiguratorListener应该不会导致出现zk新增动态配置无效的情况。 -- 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]
