Return-Path: Delivered-To: apmail-hadoop-zookeeper-user-archive@minotaur.apache.org Received: (qmail 76894 invoked from network); 20 Jul 2010 15:59:42 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Jul 2010 15:59:42 -0000 Received: (qmail 49265 invoked by uid 500); 20 Jul 2010 15:59:42 -0000 Delivered-To: apmail-hadoop-zookeeper-user-archive@hadoop.apache.org Received: (qmail 49222 invoked by uid 500); 20 Jul 2010 15:59:41 -0000 Mailing-List: contact zookeeper-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: zookeeper-user@hadoop.apache.org Delivered-To: mailing list zookeeper-user@hadoop.apache.org Received: (qmail 49214 invoked by uid 99); 20 Jul 2010 15:59:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jul 2010 15:59:41 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [69.147.107.20] (HELO mrout1-b.corp.re1.yahoo.com) (69.147.107.20) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jul 2010 15:59:35 +0000 Received: from [10.73.73.170] (wifi-73-170.greatamerica.corp.yahoo.com [10.73.73.170]) by mrout1-b.corp.re1.yahoo.com (8.13.8/8.13.8/y.out) with ESMTP id o6KFvhLo063987 for ; Tue, 20 Jul 2010 08:57:44 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; s=serpent; d=yahoo-inc.com; c=nofws; q=dns; h=message-id:date:from:user-agent:mime-version:to:subject: references:in-reply-to:content-type:content-transfer-encoding; b=CBkXR2QJ2V3xcWw5n59hBtPo208qae2nib6ma1+PP7BVBbjRW3wA418OFMdnrxJi Message-ID: <4C45C776.8060307@yahoo-inc.com> Date: Tue, 20 Jul 2010 08:57:42 -0700 From: Benjamin Reed User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.10) Gecko/20100527 Thunderbird/3.0.5 MIME-Version: 1.0 To: zookeeper-user@hadoop.apache.org Subject: Re: does a ZK client read its own write References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org it is still guaranteed to see its own write. when a client reconnects to a different server, we guarantee that the new server will be at least as up-to-date as the last server. otherwise the client would go back in time and a lot of things would go wrong. ben On 07/20/2010 08:28 AM, Jun Rao wrote: > Hi, > > In ZK, a read is handled by any server while a write is broadcasted from the > leader. If a client writes x to /X and then reads /X, is the client > guaranteed to see its own write x (what if a connection loss event happens > after the write and before the read)? Thanks, > > Jun >