Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3DB05B92C for ; Wed, 4 Jan 2012 22:22:09 +0000 (UTC) Received: (qmail 95595 invoked by uid 500); 4 Jan 2012 22:22:08 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 95524 invoked by uid 500); 4 Jan 2012 22:22:08 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 95516 invoked by uid 99); 4 Jan 2012 22:22:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2012 22:22:08 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ted.dunning@gmail.com designates 209.85.210.170 as permitted sender) Received: from [209.85.210.170] (HELO mail-iy0-f170.google.com) (209.85.210.170) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2012 22:22:00 +0000 Received: by iafj26 with SMTP id j26so33145762iaf.15 for ; Wed, 04 Jan 2012 14:21:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=dCD73rv3/l4pcBBRqIL3+JDZksbA9iFIRthVmL1rI+0=; b=p5l5N/JPhdihC1QUAlj+EqxdvJI+9PkqX0uuVvhlKFeRPAbftV97jaSrPfbdup/MxJ I7kypU5/N2pJRHnCL+iz0DeFdG1JuIdsRhRIU999k3QvRwbebsbAJqchoynvexOEE0wL rwNEkdzmvBKenSzLEoqHTBXaTjc/DZBX+wreQ= Received: by 10.50.41.131 with SMTP id f3mr68512230igl.28.1325715699110; Wed, 04 Jan 2012 14:21:39 -0800 (PST) MIME-Version: 1.0 Received: by 10.50.197.161 with HTTP; Wed, 4 Jan 2012 14:21:18 -0800 (PST) In-Reply-To: References: From: Ted Dunning Date: Wed, 4 Jan 2012 14:21:18 -0800 Message-ID: Subject: Re: Multi doc? To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=14dae9340f6151941a04b5bb3da2 X-Virus-Checked: Checked by ClamAV on apache.org --14dae9340f6151941a04b5bb3da2 Content-Type: text/plain; charset=UTF-8 On Wed, Jan 4, 2012 at 10:03 AM, Jordan Zimmerman 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. --14dae9340f6151941a04b5bb3da2--