Add a watch while creating a lock using Curator Lock API -


we have specific case 1 process acquire curator lock on key , attach watch. other process attach watch on same key. want other process notified whenever lock released(either process or zookeeper(when process dead).

i trying nodecache per guess nodecache not work when znode type ephemeral_sequential. @ leaset test case getting failed.

i managed solve problem using pathchildrencache instead of nodecache.the curator locking api creates ephemeral_sequence mode on zk. difficult provide exact path nodecache watch upon. pathchiredrencache implementation called when of process uses lock on same key create child nodes inside key on zookeeper.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -