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 2022/06/14 03:55:04 UTC

[GitHub] [dubbo] saleson opened a new issue, #10151: configurators节点变更,导致AbstractRegistry.saveProperties()保存的缓存数据丢失了providers信息

saleson opened a new issue, #10151:
URL: https://github.com/apache/dubbo/issues/10151

   <!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy -->
   
   - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: 3.0.5
   * Java version: 1.8
   
   ### Steps to reproduce this issue
   
   consumer 启动后,引用的provider添加override 信息,provider的configurators下的子节点发生变更
   
   Pls. provide [GitHub address] to reproduce this issue.
   
   ### Expected Behavior
   
   缓存数据正常保存
   
   ### Actual Behavior
   
   缓存文件中丢失了providers节点下的url信息
   
   ### Reason
   原因是ZookeeperRegistry在订阅时创建的RegistryChildListenerImpl对象采用了缓存,导致providers, configurators, routers本个节点路由使用的是同一个RegistryChildListenerImpl对象,但是RegistryChildListenerImpl对象中保存了providers的路径用于toUrlsWithEmpty方法中的创建URL动作,导致toUrlsWithEmpty方法认为configurators和routers的url是providers下的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: notifications-unsubscribe@dubbo.apache.org.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