zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Oriani <ra078...@students.ic.unicamp.br>
Subject Re: setData question
Date Wed, 30 Nov 2011 15:10:38 GMT
Not sure if I understood your question. All operations on  Zookeeper at
done atomically. So if you meant ZooKeeper.create(path, data,. ...)  the
creation of the node and the set of data are done in single shot.  Now if
do ZooKeeper.create and then ZooKeeper.setData, other operation from other
client can happen between the create and the setData.
I heard something of transactions on Zookeeper, but as I have not been
following the maillist  I do not know if the support exists or will exist.


n Wed, Nov 30, 2011 at 12:25, Jamie Johnson <jej2003@gmail.com> wrote:

> When a call is made to setData is the operation done atomically?  I.e.
> is it guaranteed that the node and its data are done in one shot such
> that any clients trying to read this data do not need to be aware of
> the fact that the node could be empty or is it possible that the node
> will exist with no data for a short period of time?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message