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 2020/10/15 15:59:46 UTC

[GitHub] [dubbo-go] zouyx commented on issue #790: etcd服务器集群,集群重启后,无法重连

zouyx commented on issue #790:
URL: https://github.com/apache/dubbo-go/issues/790#issuecomment-709424198


   > etcd服务器集群时,如果集群重启后,dubbo-go服务无法连接etcd服务,初步定为为etcd的客户端的BUG,建议修改如下:
   > https://github.com/apache/dubbo-go/blob/master/remoting/etcdv3/facade.go line 66, line 80如下:
   > 
   > ```
   > endpoint := r.GetUrl().Location
   > ...
   > err = ValidateClient(
   > 				r,
   > 				WithName(clientName),
   > 				WithEndpoints(endpoint),
   > 				WithTimeout(timeout),
   > 			)
   > ```
   > 
   > 建议修改为:
   > 
   > ```
   > endpoint := strings.Split(r.GetUrl().Location, ",")
   > ...
   > err = ValidateClient(
   > 				r,
   > 				WithName(clientName),
   > 				WithEndpoints(endpoint...),
   > 				WithTimeout(timeout),
   > 			)
   > ```
   
   十分感谢,如果有可能,可以提交 PR


----------------------------------------------------------------
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.

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