zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Dunning <ted.dunn...@gmail.com>
Subject Re: Multi doc?
Date Wed, 04 Jan 2012 22:21:18 GMT
On Wed, Jan 4, 2012 at 10:03 AM, Jordan Zimmerman <jzimmerman@netflix.com>wrote:

> OK - a few questions:
>
> * Can someone give more detail on Op.check()? I assume it generates an
> error if the version of the path doesn't match, but the doc is confusing
> to me.


Correct.


> What happens if the transaction has both a setData and a check?
>

They happen in sequence, but I couldn't say exactly which version the check
will see.  I suspect that it will see the version before the setData is
done.


> * Does ZooKeeper.multi() guarantee that there will be exactly 1 OpResult
> for every Op in the transaction. Further, is there an ordering guarantee
> for the OpResult list - i.e. the OpResults are in the same order as the
> Ops argument? If this isn't so, I don't see how someone could correlate an
> Op to its result.
>

Right.  One to one correspondence is the contract.

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