Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Zookeeper >> mail # user >> question about lock recipe and watchers

Phil Carns 2012-09-15, 01:23
Michi Mutsuzaki 2012-09-15, 05:32
Phil Carns 2012-09-15, 13:57
Copy link to this message
RE: question about lock recipe and watchers
I am about to implement a locking algorithm based on the below modification to the Zookeeper-website-recommended one. Does anyone else have experience with this?

Thank you, Michi, for the suggestion below.
From: [EMAIL PROTECTED] [[EMAIL PROTECTED]] on behalf of Michi Mutsuzaki [[EMAIL PROTECTED]]
Sent: 15 September 2012 02:32
Subject: Re: question about lock recipe and watchers

You could set the watch using get() instead of exists(). These watches
get set if and only if the znode exists, and they get triggered when
the znode goes away.
Phil Carns 2012-09-17, 18:15
Robin Bate Boerop 2012-09-17, 18:35