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/25 12:35:08 UTC

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

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


   > 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),
   > 			)
   > ```
   
   你好,我这边使用的是 dubbogo 1.5.3 版本,3 台 etcd 的集群,当我重启集群后 dubbogo 可以恢复重连。可以提供版本,报错截图,或者更多的信息么?@whitekeyboard


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