You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "xxxxssss12 (GitHub)" <gi...@apache.org> on 2020/02/20 09:31:31 UTC

[GitHub] [dubbo-spring-boot-project] xxxxssss12 opened issue #676: 2.7.5版本,redis注册中心报错,password为null

错误为:
Failed to subscribe service from redis registry. registry: redis.server.com:6379, cause: Could not get a resource from the pool, dubbo version: 2.7.5

环境信息:
spring-boot: 2.1.6
系统: centOS 7
java: openjdk-1.8.0
redis: 5.0.3
dubbo: 2.7.5
dubbo-spring-boot-starter: 2.7.5

本地配置如下:

```
spring.application.name=aaa
dubbo.scan.base-packages=aaa.aaa
dubbo.service.version=1.0.0
dubbo.protocol.name=dubbo
dubbo.registry.address=redis://redis.server.com:6379
dubbo.registry.username=root
dubbo.registry.password=tqisipTgjucNGjdj0a4LP113Hcfr10yq
```

切换回2.7.3可以正常使用,更新到2.7.5会报这个错误。

debug定位到RedisRegistry的构造函数入参url,发现url中的username和password为空。这个在2.7.3中有值,这个password的配置key是变了吗?

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