Reputation: 13
Is there a guarantee provided by zookeeper about the order of ephemeral node creation?
Consider the following scenario:
My question: is the structure guaranteed to be Structure 1:
Proc
|__ p1
|__ p2
or could it also be Structure 2:
Proc
|__ p2
|__ p1
I have looked through the Zookeeper docs and while it clearly explains ephemeral nodes and how they get deleted at end/expiry of a session. There is no mention about the order of creation of these nodes.
Any help would be much appreciated. thanks!
Upvotes: 0
Views: 117
Reputation: 3490
The creation order of ephemeral nodes is decided by the arrival time to ZK server of the requests, not the send time.
Upvotes: 0