On Wed, Jan 4, 2012 at 10:03 AM, Jordan Zimmerman <[email protected]>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.
