python-zk/kazoo

can't delete zknode, kazoo version is 2.8.0

Opened this issue · 2 comments

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]

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)

Hello,
Thank you very much!