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

   ### Pre-check
   
   - [X] I am sure that all the content I provide is in English.
   
   
   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/dubbo/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Apache Dubbo Component
   
   Java SDK (apache/dubbo)
   
   ### Dubbo Version
   
   Dubbo 3.2.9, JDK 1.8, MacOS
   
   ### Steps to reproduce this issue
   
   In an application, it is both a provider and a consumer.
   When it as a provider, use spring boot properties like this:
   ```
   dubbo.registry.address=nacos://nacos-mba.qiyi.domain:8848
   ```
   and when it as a consumer to invoker other provider, the registry is like 
this:
   ```
   RegistryConfig registryConfig = new 
RegistryConfig("nacos://nacos-test.qiyi.domain:8848");
   referenceConfig.setRegistry(registryConfig);
   ```
   and then run the project.
   
   When running to `ConfigValidationUtils.loadRegistries()`, the registry for 
the consumer will be overwrittern by the registry for the provider.
   
   The relevant screenshots are as follows:
   
   ![Before 
refresh](https://raw.githubusercontent.com/goto456/markdown-pictures/master/wengeblog/dubbo-bug-1.jpg)
   
   ![After 
refresh](https://raw.githubusercontent.com/goto456/markdown-pictures/master/wengeblog/dubbo-bug-2.jpeg)
   
   
   
   
   
   ### What you expected to happen
   
   The registry for the consumer should not be overwrittern by the registry for 
the provider.
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request to fix on your own?
   
   - [ ] Yes I am willing to submit a pull request on my own!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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]

Reply via email to