util icon indicating copy to clipboard operation
util copied to clipboard

Is there a ZooKeeper recursive path create function utils?

Open ghost opened this issue 7 years ago • 6 comments

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.

ghost avatar Jan 12 '18 19:01 ghost

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.

ryanoneill avatar Jan 16 '18 22:01 ryanoneill

@rquinlivan, is this something you would be interested in fixing via a pull request?

ryanoneill avatar Jan 17 '18 18:01 ryanoneill

Sure I will put a PR together

ghost avatar Apr 09 '18 15:04 ghost

Hi @rquinlivan are you still working on this?

luciferous avatar Jul 16 '19 13:07 luciferous

Hi! I'd like to take this up, if nobody else is working on it at the moment.

anukul avatar Aug 05 '19 10:08 anukul

@anukul given how long its been, I think it's safe for you to take a crack at it.

kevinoliver avatar Aug 05 '19 22:08 kevinoliver

Do you still need help here? If you are, I wanna look at it

BurakCakan avatar Aug 18 '23 08:08 BurakCakan