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 9B4DF18070 for ; Sun, 27 Sep 2015 16:21:15 +0000 (UTC) Received: (qmail 3665 invoked by uid 500); 27 Sep 2015 16:21:10 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 3616 invoked by uid 500); 27 Sep 2015 16:21:10 -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 3604 invoked by uid 99); 27 Sep 2015 16:21:09 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Sep 2015 16:21:09 +0000 Received: from mail-qg0-f47.google.com (mail-qg0-f47.google.com [209.85.192.47]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 86E991A025E for ; Sun, 27 Sep 2015 16:21:09 +0000 (UTC) Received: by qgx61 with SMTP id 61so104193044qgx.3 for ; Sun, 27 Sep 2015 09:21:08 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.140.105.194 with SMTP id c60mr17302638qgf.40.1443370868707; Sun, 27 Sep 2015 09:21:08 -0700 (PDT) Received: by 10.140.43.66 with HTTP; Sun, 27 Sep 2015 09:21:08 -0700 (PDT) Received: by 10.140.43.66 with HTTP; Sun, 27 Sep 2015 09:21:08 -0700 (PDT) In-Reply-To: References: Date: Sun, 27 Sep 2015 17:21:08 +0100 Message-ID: Subject: Re: Zab Failure scenario From: Flavio P JUNQUEIRA To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=001a113a94d6e89a380520bcf71e --001a113a94d6e89a380520bcf71e Content-Type: text/plain; charset=UTF-8 In 3, it is not exactly a pending proposal, but if the leader has 10 in its log, then it will make sure 10 is committed by the end of the synchronisation phase and before it becomes established. I'm not sure why you are assuming 3.4.6, though. Why is it relevant for this question? -Flavio On 27 Sep 2015 4:51 pm, "Ibrahim El-sanosi (PGR)" < i.s.el-sanosi@newcastle.ac.uk> wrote: > Assume we use ZooKeeper 3.4.6 and we have 3-server cluster. Leader (L), > follower1 (F1) and follower2 (F2). The scenario is as following: > > 1. Leader sends a proposal with Zxid = 10. > > 2. F2 crashes before receiving P10. F1 logs, sends an ACK and > crashes. > As there is no quorum supporting L, L moves to LOOKING phase to find a > quorum and elects new leader. After sometime F1 wakes up and form a quorum > with L. Both F1 and L (pervious leader) have same state (zxid =10 in their > log). Therefore the process which has the large myid will be a leader, > assume L (pervious leader) has larger myid, So, > > 3. L sends a pending proposal with Zxid =10 to F1. > > 4. F1 logs and sends an ACK. > > 5. Upon receiving ACK, L commits p10 and sends an ACK. > > > > (1) Is this true or false? > > (2) Regards, > Ibrahim > > --001a113a94d6e89a380520bcf71e--