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/16 11:17:30 UTC
[GitHub] [dubbo] zgs225 opened a new issue, #10170: Multiple protocols of a service can't work when use nacos registry
zgs225 opened a new issue, #10170:
URL: https://github.com/apache/dubbo/issues/10170
<!-- 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.2
* Operating System version: MacOs BigSur
* Java version: 1.8
### Steps to reproduce this issue
1. use nacos as registry
2. config a provider to support multiple protocols
3. start the application, then only last protocol works
Pls. provide [GitHub address] to reproduce this issue.
### Expected Behavior
<!-- What do you expect from the above steps?-->
### Actual Behavior
When use multiple protocols, dubbo send multiple registry urls to nacos, but the previous will be overrided.
If there is an exception, please attach the exception trace:
```
Just put your stack trace here!
```
--
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] chickenlj closed issue #10170: Multiple protocols of a service can't work when use nacos registry
Posted by GitBox <gi...@apache.org>.
chickenlj closed issue #10170: Multiple protocols of a service can't work when use nacos registry
URL: https://github.com/apache/dubbo/issues/10170
--
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] wangchengming666 commented on issue #10170: Multiple protocols of a service can't work when use nacos registry
Posted by GitBox <gi...@apache.org>.
wangchengming666 commented on issue #10170:
URL: https://github.com/apache/dubbo/issues/10170#issuecomment-1161467936
可以多提供一些信息方便社区复现吗
--
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] zgs225 commented on issue #10170: Multiple protocols of a service can't work when use nacos registry
Posted by GitBox <gi...@apache.org>.
zgs225 commented on issue #10170:
URL: https://github.com/apache/dubbo/issues/10170#issuecomment-1162519390
当我使用如下配置注册 provider 以使其同时支持 tri 和 dubbo 协议时,如果注册中心是 nacos ,那么只有最后一个生效。如果换成 zookeeper ,那么两个协议都支持。
``` xml
<!-- 连接到哪个本地注册中心 -->
<dubbo:registry id="dubbogo" address="nacos://127.0.0.1:8848" />
<!-- 用dubbo协议在20880端口暴露服务 -->
<dubbo:protocol name="tri" host="127.0.0.1" port="20010" />
<dubbo:protocol name="dubbo" host="127.0.0.1" port="20011" />
<!-- 声明需要暴露的服务接口 -->
<dubbo:service id="aaa" registry="dubbogo" timeout="3000" interface="org.apache.dubbo.sample.UserProvider" ref="demoService" protocol="dubbo,tri"/>
```
--
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] chickenlj commented on issue #10170: Multiple protocols of a service can't work when use nacos registry
Posted by GitBox <gi...@apache.org>.
chickenlj commented on issue #10170:
URL: https://github.com/apache/dubbo/issues/10170#issuecomment-1235085602
Please try the latest 3.0.11 release
--
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 #10170: Multiple protocols of a service can't work when use nacos registry
Posted by GitBox <gi...@apache.org>.
AlbumenJ commented on issue #10170:
URL: https://github.com/apache/dubbo/issues/10170#issuecomment-1181273981
Will be fixed in https://github.com/apache/dubbo/pull/10256
--
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] yucw01 commented on issue #10170: Multiple protocols of a service can't work when use nacos registry
Posted by GitBox <gi...@apache.org>.
yucw01 commented on issue #10170:
URL: https://github.com/apache/dubbo/issues/10170#issuecomment-1161847001
可以使用最新稳定版本。provider开启如tri、dubbo协议后,消费者不指定协议的情况下是会选其中一个调用的
--
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] zgs225 commented on issue #10170: Multiple protocols of a service can't work when use nacos registry
Posted by GitBox <gi...@apache.org>.
zgs225 commented on issue #10170:
URL: https://github.com/apache/dubbo/issues/10170#issuecomment-1162520526
> 可以使用最新稳定版本。provider开启如tri、dubbo协议后,消费者不指定协议的情况下是会选其中一个调用的
目前我使用的 `dubbo-spring-boot-starter` 版本为 3.0.8,已经是最新版。
--
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 #10170: Multiple protocols of a service can't work when use nacos registry
Posted by GitBox <gi...@apache.org>.
AlbumenJ commented on issue #10170:
URL: https://github.com/apache/dubbo/issues/10170#issuecomment-1168643176
相关issue:https://github.com/apache/dubbo/issues/10196
这个问题也是 serviceProtocolKey 不支持泛匹配导致的
--
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