You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "dslztx (via GitHub)" <gi...@apache.org> on 2026/07/15 08:27:19 UTC

[PR] Fix: exclude RegistryConfig when fast check duplicated equivalent config [dubbo]

dslztx opened a new pull request, #16380:
URL: https://github.com/apache/dubbo/pull/16380

   if the dubbo consumer xml config is as follow
   
       <dubbo:registry id="zk1" protocol="zookeeper"
                       address="${ZK1_ADDRESS:10.47.181.23:2181,10.47.181.24:2181,10.47.181.25:2181}"/>
   
       <dubbo:registry id="zk2" protocol="zookeeper"
                       address="${ZK2_ADDRESS:10.47.181.20:2181,10.47.181.21:2181,10.47.181.22:2181}"/>
   
       <dubbo:reference id="app1" interface="com.test.app1" registry="zk1"/>
   
       <dubbo:reference id="app2" interface="com.test.app2" registry="zk2"/>
   
   in which ZK1_ADDRESS and ZK2_ADDRESS are env variables.
   
   what is exactly needed is that ZK1_ADDRESS and ZK2_ADDRESS may be the same or different.
   
   when ZK1_ADDRESS and ZK2_ADDRESS are the same, current implementation will only register zk1 registy config successfully, the zk2 registry config is identified as duplication,then it throws exception `java.lang.IllegalStateException: Registry not found: zk2` when loading app2 reference config
   
   ## What is the purpose of the change?
   
   
   ## Checklist
   - [x] Make sure there is a [GitHub_issue](https://github.com/apache/dubbo/issues) field for the change.
   - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
   - [x] Write necessary unit-test to verify your logic correction. If the new feature or significant change is committed, please remember to add sample in [dubbo samples](https://github.com/apache/dubbo-samples) project.
   - [x] Make sure gitHub actions can pass. [Why the workflow is failing and how to fix it?](../CONTRIBUTING.md)
   


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

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


Re: [PR] Fix: exclude RegistryConfig when fast check duplicated equivalent config [dubbo]

Posted by "dslztx (via GitHub)" <gi...@apache.org>.
dslztx closed pull request #16380: Fix: exclude RegistryConfig when fast check duplicated equivalent config
URL: https://github.com/apache/dubbo/pull/16380


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

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