bonifaido / rust-zookeeper

Pure Rust library for Apache ZooKeeper built on MIO
MIT License
206 stars 46 forks source link

The client needs to re-send watches on reconnects #97

Open behos opened 1 year ago

behos commented 1 year ago

Watches are stored locally in the ensemble member that they were created in-memory and are not moved between members on disconnects.

When reconnecting to Zookeeper https://github.com/bonifaido/rust-zookeeper/blob/master/src/io.rs#L299-L349 we might hit a new node which doesn't have our watches, so we need to recreate them on reconnect.