You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "boomblog (GitHub)" <gi...@apache.org> on 2019/03/21 05:48:49 UTC

[GitHub] [incubator-dubbo] boomblog opened issue #3710: 使用incubator-dubbo-admin的develop分支去修改服务的动态配置,会导致消费者引用不到该服务

- [ ] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
- [ ] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.

### Environment

* Dubbo version: 2.7
* Operating System version: 
* Java version: 1.8

### Steps to reproduce this issue

1. 正常导出服务,服务提供者地址为http://169.254.71.3:8081/com.luban.mock_demo.api.HelloService?anyhost=true&application=xml-demo-provider&bean.name=com.luban.mock_demo.api.HelloService&bind.ip=169.254.71.3&bind.port=8081&default.deprecated=false&default.dynamic=false&default.register=true&deprecated=false&dubbo=2.0.2&dynamic=false&generic=false&interface=com.luban.mock_demo.api.HelloService&methods=sayHello&pid=15854&register=true&release=2.7.0&server=tomcat&side=provider&timeout=2000&timestamp=1553146018199
2. 修改改服务的动态配置后,服务提供者地址变为http://169.254.71.3:8081/com.luban.mock_demo.api.HelloService?anyhost=true&application=xml-demo-provider&bean.name=com.luban.mock_demo.api.HelloService&bind.ip=169.254.71.3&bind.port=8081&compatible_config=true&default.deprecated=false&default.dynamic=false&default.register=true&deprecated=false&dubbo=2.0.2&dynamic=false&generic=false&interface=com.luban.mock_demo.api.HelloService&methods=sayHello&pid=15854&register=true&release=2.7.0&server=tomcat&side=provider&timeout=6000&timestamp=1553146018199,该地址中增加了参数compatible_config=true。
3. 消费引用服务报找不到服务提供者地址。

问题出现的原因其实就是因为新的服务提供者地址中增加了compatible_config=true参数,消费者在引入该服务时,改地址会被过滤掉,所以找不到该服务提供者地址。
而compatible_config=true该参数出现的原因是,修改了动态配置中心,所以在configurators中存在了override%3A%2F%2F0.0.0.0%2Fcom.luban.mock_demo.api.HelloService%3Fcategory%3Dconfigurators%26compatible_config%3Dtrue%26dynamic%3Dfalse%26enabled%3Dtrue%26timeout%3D6000,这个地址中有compatible_config参数,并且服务端会监听到这个地址的变化,然后去重写服务提供者地址,就导致了服务提供者地址中出现compatible_config=true参数。

Pls. provide [GitHub address] to reproduce this issue.

### Expected Result

消费能正常引用改服务

### Actual Result
消费不能正常引用改服务
What actually happens?

If there is an exception, please attach the exception trace:

```
Just put your stack trace here!
```


[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3710 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org

[GitHub] [incubator-dubbo] liuliwengeek commented on issue #3710: 使用incubator-dubbo-admin的develop分支去修改服务的动态配置,会导致消费者引用不到该服务

Posted by "liuliwengeek (GitHub)" <gi...@apache.org>.
12345

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3710 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org