zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jordan Zimmerman <jzimmer...@netflix.com>
Subject Re: Ephemeral Nesting
Date Thu, 01 Mar 2012 23:41:32 GMT
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" <Ryan.Shelley@disney.com> 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.


Mime
View raw message