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