>>>>>> 2) I sends "delete /path", the request reaches zkserver-1
In your case, I assume there is no disturbance to the quorum status. Once the 
requests reaches zkserver-1, the request will be passed to the Leader server 
and it will perform the user requested delete operation(Active Messaging phase 
- 
http://zookeeper.apache.org/doc/r3.4.1/zookeeperInternals.html#sc_activeMessaging).

>>>>>> 3) reconnect the same session to zkserver-2,  and I sends "get /path".
You will hit "not exists"

Regards,
Rakesh
-----Original Message-----
From: [email protected] [mailto:[email protected]] 
Sent: 27 July 2015 15:43
To: [email protected]
Subject: Doubts about libzookeeper

Hi,
     I'm thinking about a program desgin with libzookeeper, here is my doubts:

    1) first, I connnect to zkserver-1, and there exists the path "/path".
    2) I sends "delete /path", the request reaches zkserver-1 and dont't know 
whether this effected, and then lost connection before response returns.
    3) reconnect the same session to zkserver-2,  and I sends "get /path".
   
    which one will the "get /path" return possibly:
    1, "not exists" 
    2, "exists" and "always exists"
    3, "exists" and "not exists" afterwards


     thanks very much ~
 

Reply via email to