Yes, you need a session to create the TTL node. I believe discussion about 
needing a session to create the node is beyond the scope of this issue and 
should be addressed by a new Jira issue. It doesn’t affect the utility of TTL 
nodes that you must first have a ZK session. Users who no longer want a session 
can merely close the ZK handle after creating the TTL node. 

-Jordan

> On Aug 30, 2016, at 7:41 AM, Flavio Junqueira <f...@apache.org> wrote:
> 
> 
>> On 29 Aug 2016, at 19:51, Jordan Zimmerman <jor...@jordanzimmerman.com> 
>> wrote:
>> 
>>> On the server side, we already have a mechanism to expire sessions, do we a 
>>> separate scheme to expire TTL nodes or can we use the same mechanism? Does 
>>> it make sense to consider a TTL node as a degenerate case of a session in 
>>> which I have a single ephemeral node? My recollection is that it currently 
>>> uses the container manager instead.
>> 
>> The TTL implementation I did takes advantage of the Container node feature. 
>> A TTL node is a variation of a container node. It doesn’t require a session 
>> (like any persistent node). 
>> 
> 
> It doesn't require a session, but the client has no way to create such a TTL 
> node without creating a session first, right? You need the zk handle, which 
> has a session associated, to create a TTL node as I understand it.
> 
> -Flavio
> 


Reply via email to