You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by César Álvarez Núñez <ce...@gmail.com> on 2011/11/16 18:06:34 UTC

Unexpected NodeCreated?

Hi all,

I'd like to know if the next flow is right?

   1. Create Ephemeral Sequential at "/parent/" > OK [/parent/0000000000]
   2. Remove zpath [/parent/0000000000] > OK
   3. exists(/parent/0000000000,true,null) > NONODE
   4. Remove zpath [/parent] > OK
   5. Create Persistent zpath [/parent] > OK
   6. Create Ephemeral Sequential at "/parent/" > OK [/parent/0000000000]
   7. EventType.NodeCreated [/parent/0000000000] triggered.

Is it valid to receive a "NodeCreated" event or watcher should had been
removed with parent zPath removal?

BR,
/César.

Re: Unexpected NodeCreated?

Posted by Mahadev Konar <ma...@hortonworks.com>.
Cesar,
This is expected behavior.

mahadev

2011/11/16 César Álvarez Núñez <ce...@gmail.com>:
> Hi all,
>
> I'd like to know if the next flow is right?
>
>   1. Create Ephemeral Sequential at "/parent/" > OK [/parent/0000000000]
>   2. Remove zpath [/parent/0000000000] > OK
>   3. exists(/parent/0000000000,true,null) > NONODE
>   4. Remove zpath [/parent] > OK
>   5. Create Persistent zpath [/parent] > OK
>   6. Create Ephemeral Sequential at "/parent/" > OK [/parent/0000000000]
>   7. EventType.NodeCreated [/parent/0000000000] triggered.
>
> Is it valid to receive a "NodeCreated" event or watcher should had been
> removed with parent zPath removal?
>
> BR,
> /César.
>