Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用etcd集群作为注册中心,无法完成注册 #827

Closed
sks126 opened this issue Oct 31, 2020 · 0 comments · Fixed by #819
Closed

使用etcd集群作为注册中心,无法完成注册 #827

sks126 opened this issue Oct 31, 2020 · 0 comments · Fixed by #819

Comments

@sks126
Copy link
Contributor

sks126 commented Oct 31, 2020

BUG现象:当前使用etcd作为注册中心,etcd单机可正常注册;使用集群无法完成注册
原因:
1.etcd服务配置以字符串形式,集群服务列表以逗号隔开;
2.etcd client包中的client结构体以字符串数组形式
3.原代码没有将配置字符串解析成字符串数组,导致无法连接etcd服务集群;而单节点刚好作为数组一个元素,符合结构,可以正常连接

@zouyx zouyx linked a pull request Oct 31, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants