You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "ooooo-youwillsee (via GitHub)" <gi...@apache.org> on 2023/06/30 02:52:47 UTC
[GitHub] [dubbo] ooooo-youwillsee opened a new issue, #12629: 多注册中心 key 覆盖问题
ooooo-youwillsee opened a new issue, #12629:
URL: https://github.com/apache/dubbo/issues/12629
<!-- 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.1.10
* Operating System version: macos
* Java version: 1.8
### Steps to reproduce this issue
配置如下
```
dubbo:
application:
parameters:
registry-type: service
registries:
a:
address: nacos://172.16.1.104:8848
group: DUBBO_SERVICE_GROUP
parameters:
namespace: a
b:
address: nacos://172.16.1.104:8848
group: DUBBO_SERVICE_GROUP
parameters:
namespace: b
```
Pls. provide [GitHub address] to reproduce this issue.
### Expected Behavior
可以注册到两个命名空间中
### Actual Behavior
只会注册到一个命名空间中
If there is an exception, please attach the exception trace:
我调试了一下,发现 key 是相同的
代码位置: `org.apache.dubbo.registry.support.AbstractRegistryFactory#getRegistry`,
注意这里的 this 实例,对于两个注册中心,生成key都是一样的。

```
```
--
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
[GitHub] [dubbo] ooooo-youwillsee commented on issue #12629: 多注册中心 key 覆盖问题
Posted by "ooooo-youwillsee (via GitHub)" <gi...@apache.org>.
ooooo-youwillsee commented on issue #12629:
URL: https://github.com/apache/dubbo/issues/12629#issuecomment-1620880673
不同域名对应一个ip地址,暂时解决了
--
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
[GitHub] [dubbo] AlbumenJ commented on issue #12629: 多注册中心 key 覆盖问题
Posted by "AlbumenJ (via GitHub)" <gi...@apache.org>.
AlbumenJ commented on issue #12629:
URL: https://github.com/apache/dubbo/issues/12629#issuecomment-1617121174
应用级服务发现需要按照类似 org.apache.dubbo.registry.nacos.NacosRegistryFactory 的逻辑配置一个独立的复用逻辑
--
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: [I] 多注册中心 key 覆盖问题 [dubbo]
Posted by "CrazyHZM (via GitHub)" <gi...@apache.org>.
CrazyHZM closed issue #12629: 多注册中心 key 覆盖问题
URL: https://github.com/apache/dubbo/issues/12629
--
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