Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Zookeeper >> mail # user >> Multi doc?

Copy link to this message
Re: Multi doc?
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.
> 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
> * 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.