Is there a ZooKeeper recursive path create function utils?
Hello,
I am working with the ZkAsyncSemaphore under zk-utils and I found that I need to pre-create the znodes in ZooKeeper or an exception will be thrown. Is there a defined utility function to do this? I found one in the commons library but it uses an older client.
EDIT:
Upon investigation, it seems that there is a function safeCreate within the semaphore that is meant to create the path for you. However, it doesn't seem to be working. I get a NoNode error from ZooKeeper.
Hi @rquinlivan,
It appears that we no longer use ZkAsyncSemaphore in our code internally. It's quite possible that this code has grown stale as we've updated versions of Zookeeper.
And, I just tried manually using ZkAsyncSemaphore via the repl and running the tests with an instance of Zookeeper via the "com.twitter.zk.TEST_CONNECT" system property, and both failed in the exact method that you described.
@rquinlivan, is this something you would be interested in fixing via a pull request?
Sure I will put a PR together
Hi @rquinlivan are you still working on this?
Hi! I'd like to take this up, if nobody else is working on it at the moment.
@anukul given how long its been, I think it's safe for you to take a crack at it.
Do you still need help here? If you are, I wanna look at it