go-zookeeper / zk

Native ZooKeeper client for Go
BSD 3-Clause "New" or "Revised" License
504 stars 130 forks source link

Fix for dnshostprovider to be able to skip this DNS failure in case o… #144

Open proggga opened 1 month ago

proggga commented 1 month ago

You could have 5-10-15 zookeepers and any dns issue with resolve will lead to failure of this ZK lib. Which totaly destroys all idea of having multiple nodes inside zookeeper.

This code doesn't change current logic but extend option for dns resolver to be able to disable this error and keep working