Skip to content
This repository was archived by the owner on Jul 21, 2021. It is now read-only.

Commit 519c719

Browse files
committed
Implement ZOOKEEPER-1576 for golang
1 parent c4fab1a commit 519c719

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

zk/dnshostprovider.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ func (hp *DNSHostProvider) Init(servers []string) error {
3838
}
3939
addrs, err := lookupHost(host)
4040
if err != nil {
41-
return err
41+
// If one node is down, Init should still continue
42+
continue
4243
}
4344
for _, addr := range addrs {
4445
found = append(found, net.JoinHostPort(addr, port))

0 commit comments

Comments
 (0)