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

Switch to Threaded View
Zookeeper >> mail # user >> Ephemeral Nesting


Copy link to this message
-
Re: Ephemeral Nesting
Yes, there's an issue in Jira on this:

https://issues.apache.org/jira/browse/ZOOKEEPER-723
On 3/1/12 3:38 PM, "Shelley, Ryan" <[EMAIL PROTECTED]> wrote:

>I know that Ephemeral nodes can't have children, but I was curious if
>there's been discussion around this lately, in particular around
>Ephemerals having only Ephemeral children. So an ephemeral node will stay
>active while it's ephemeral children are still connected, but as soon as
>the children are gone, the parent ephemeral node goes too. I'm basically
>doing this now with a nested persistent nodes and watches on each level
>so that when children are removed the watch checks to see how many
>children are left and deletes the node if there are no more children. The
>code for it is a bit heavy-handed and poses some concurrency issues with
>multiple clients connected to the zk cluster (since they all may have
>watches are the same nodes), which is why it might be cleaner at the
>server.