go-zookeeper / zk

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

Watches are not invalidated when the client looses connection with ZK cluster. #83

Open niamster opened 2 years ago

niamster commented 2 years ago

In the connect loop the client does not try to reset active watches. This leads to stale view of the world if the client becomes isolated. I would expect to receive an event to ensure that the business logic is aware of partitioning and could react accordingly.