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 7DEB4107E7 for ; Fri, 6 Sep 2013 04:12:32 +0000 (UTC) Received: (qmail 82714 invoked by uid 500); 6 Sep 2013 04:12:31 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 82285 invoked by uid 500); 6 Sep 2013 04:12:31 -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 82274 invoked by uid 99); 6 Sep 2013 04:12:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Sep 2013 04:12:29 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bitanarch@gmail.com designates 209.85.160.54 as permitted sender) Received: from [209.85.160.54] (HELO mail-pb0-f54.google.com) (209.85.160.54) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Sep 2013 04:12:22 +0000 Received: by mail-pb0-f54.google.com with SMTP id ro12so2691962pbb.13 for ; Thu, 05 Sep 2013 21:12:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:mime-version:in-reply-to:content-type :content-transfer-encoding:message-id:cc:from:subject:date:to; bh=H7Hh82NaSqNE8afmlb+dGBy67pcruHVHLxspZ/LfJII=; b=gYYv1OBUoywGlHdkIp1obC0Kfa+do8ZdCKIC4bEuFoX/OChS8rw8hn1MSkelspBBBV QZV3yxWWXLevtKTnDzWmqRdBIb0k9ZPDf0DKg+DW6Ev+PTAbByZPzCHDxkNAfRXcRppc GbR+tBN91OLAG6zV/eCEbehgiEOcb3S0rwuFyfC5pO77dLgIOrjpycE51eS7+dh9jtDH nuEBgInvw4d0tZpo2S6LUbtxewHxf7K8Qewo8fdeFP99ZW2iUNdpMqs+DKWm5ke7fyGq SuzsRiVwE1LS+fntydQu+iR7mJoJaQEwGeJlDvYz31SIkSzM9O+4apH/HP5hHE3rtU16 4YUw== X-Received: by 10.68.216.227 with SMTP id ot3mr631060pbc.80.1378440722503; Thu, 05 Sep 2013 21:12:02 -0700 (PDT) Received: from [10.78.157.203] (mobile-166-137-187-148.mycingular.net. [166.137.187.148]) by mx.google.com with ESMTPSA id it15sm784253pbd.31.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 05 Sep 2013 21:12:01 -0700 (PDT) References: Mime-Version: 1.0 (1.0) In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: <5A4A256C-89B9-4088-9919-655BDFFC3F71@gmail.com> Cc: "user@zookeeper.apache.org" X-Mailer: iPhone Mail (11A4449d) From: Martin Kou Subject: Re: issue about write sync in majority followers Date: Thu, 5 Sep 2013 21:11:59 -0700 To: "user@zookeeper.apache.org" X-Virus-Checked: Checked by ClamAV on apache.org The follower doesn't persist in the beginning - not until it's sure it had t= he consensus of the quorum. Also, the client only talks to the node it is co= nnected to. The general algorithm you're looking for here is Paxos. You may want to look= that up. Sent from my iPhone > On Sep 3, 2013, at 11:54 PM, ch huang wrote: >=20 > hi,all: > i am very confused about the write sync process,what i thank is > ,client connect to one of follower ,send a update request to it,and the > follower persisted the update to it's disk ,then forward this request to > the leader,the leader broadcast it to all it's follower, if the leader get= > responce of the majority of all follower say the update succeed, it commit= s > the update ,and the client will get success response (from who? the leader= > or the follower who connected?) >=20 > so before leader persisted the change ,this change should be persisted on > majority of followers ? >=20 > what i think is right??