tgockel / zookeeper-cpp

A ZooKeeper client for C++.
http://tgockel.github.io/zookeeper-cpp/
Apache License 2.0
148 stars 40 forks source link

zk::client crash with 'std::bad_alloc' when call watch() or get() #131

Open bmeAtnju opened 1 year ago

bmeAtnju commented 1 year ago

If no value is written when the zookeeper node is created, zk::client will crash when calling watch({path}) or get({path}) during Runtime because it uses nullptr to construct the zk::buffer