[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13049931#comment-13049931
 ] 

Patrick Hunt commented on ZOOKEEPER-723:
----------------------------------------

Wow, my brain is in an infinite loop now. ;-)

Yes, iirc that's one of the issues we had touched on way back when... and one 
of the reasons why we kept it simply that ephemeral nodes couldn't have 
children. I seem to also remember another related issue, that once you start 
allowing arbitrarily large ephemeral trees to be built there was a concern 
about cleanup and it's effect on availability of the system as a whole. (still 
a concern I would have)

note: If this znode really is ephemeral (strongly tied to the session lifetime) 
I don't have a problem calling it as such. however it the znode can live beyond 
the session lifetime that created it then Flavio's suggestion of "solitary" 
sounds good to me. (was that a typo or did you really mean solidary?)

> ephemeral parent znodes
> -----------------------
>
>                 Key: ZOOKEEPER-723
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-723
>             Project: ZooKeeper
>          Issue Type: New Feature
>          Components: server
>            Reporter: Benjamin Reed
>            Assignee: Daniel Gómez Ferro
>         Attachments: ZOOKEEPER-723.patch
>
>
> ephemeral znodes have the nice property of automatically cleaning up after 
> themselves when the creator goes away, but since they can't have children it 
> is hard to build subtrees that will cleanup after the clients that are using 
> them are gone.
> rather than changing the semantics of ephemeral nodes, i propose ephemeral 
> parents: znodes that disappear when they have no more children. this cleanup 
> would happen automatically when the last child is removed. an ephemeral 
> parent is not tied to any particular session, so even if the creator goes 
> away, the ephemeral parent will remain as long as there are children.
> the when an ephemeral parent is created it will have an initial child, so 
> that it doesn't get immediately removed. i think this child should be an 
> ephemeral znode with a predefined name, "firstChild".

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to