python-zk / kazoo

Kazoo is a high-level Python library that makes it easier to use Apache Zookeeper.
https://kazoo.readthedocs.io
Apache License 2.0
1.3k stars 386 forks source link

can't delete zknode, kazoo version is 2.8.0 #634

Closed ghost closed 3 years ago

ghost commented 3 years ago

code:

zkClient.start() print(zkClient.get_children("/")) zkClient.delete(path="persi_not_seq", recursive=True) print(zkClient.get_children("/")) zkClient.stop()

result: ['persi_no_seq', 'zookeeper', 'hadoop-ha', 'kafka', 'hive_zookeeper_namespace_hive', 'hbase'] ['persi_no_seq', 'zookeeper', 'hadoop-ha', 'kafka', 'hive_zookeeper_namespace_hive', 'hbase'] [Finished in 1.4s]

StephenSorriaux commented 3 years ago

Hello,

I think you have a typo in your code: zkClient.delete(path="persi_not_seq", recursive=True) should be zkClient.delete(path="persi_no_seq", recursive=True) (the t should not be there)

ghost commented 3 years ago

Hello, Thank you very much!