Return-Path: X-Original-To: apmail-curator-user-archive@minotaur.apache.org Delivered-To: apmail-curator-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5B9D0101CA for ; Mon, 4 Nov 2013 16:31:13 +0000 (UTC) Received: (qmail 22116 invoked by uid 500); 4 Nov 2013 16:31:05 -0000 Delivered-To: apmail-curator-user-archive@curator.apache.org Received: (qmail 22043 invoked by uid 500); 4 Nov 2013 16:31:01 -0000 Mailing-List: contact user-help@curator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@curator.apache.org Delivered-To: mailing list user@curator.apache.org Received: (qmail 21930 invoked by uid 99); 4 Nov 2013 16:30:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Nov 2013 16:30:57 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [209.85.192.178] (HELO mail-pd0-f178.google.com) (209.85.192.178) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Nov 2013 16:30:52 +0000 Received: by mail-pd0-f178.google.com with SMTP id x10so6895141pdj.37 for ; Mon, 04 Nov 2013 08:30:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=wki5BXvZhbin+IKY+7FRot9w0EjGAkgQssDX5prYng4=; b=YnoLaRXz1GBQFPAmULS6gzOFK1c1UfYjS8F6O/PdyQ552QJAEmiW51olMc+L9cgm/Q aZ0zj7jJn2ZES37XXW8ptTTwdfumLci3/MsfLyWw4g6wWrYebXGQGpbpOvOgrzcyv4rf qJ94eeUDX0d9iR5S9jT+C0jMNH2wmSQ0vFNkRy9mnM9eVOhGmeFgTb4M9ldUrlwigVlE 0zyJA4VkTCkorw9edyeijNdMkcJnFHVaEw1/Hnd0dgsg1h3LFZ1ky9tchDP/W7Kyo2X1 JR0Yio3W40P8NUQ4MaQJ9XsgshLWH9XJ8I1CCQbkbn+RzDU4LrFcwSZ6AhUFGG9F0PCv S8Sg== X-Gm-Message-State: ALoCoQk49SVvpZHnn4GpLQXTHNfC8TJYKbtPWEGaCyXtHPm9VwlmDCTopNBl1ML4wut6sR7bWt60 X-Received: by 10.66.51.34 with SMTP id h2mr1765243pao.181.1383582629176; Mon, 04 Nov 2013 08:30:29 -0800 (PST) Received: from [10.0.0.9] (c-50-168-88-247.hsd1.ca.comcast.net. [50.168.88.247]) by mx.google.com with ESMTPSA id qf7sm34134035pac.14.2013.11.04.08.30.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 04 Nov 2013 08:30:27 -0800 (PST) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1816\)) Subject: Re: Leader Selection and failing node From: Jordan Zimmerman In-Reply-To: Date: Mon, 4 Nov 2013 08:30:25 -0800 Cc: "user@curator.incubator.apache.org" Content-Transfer-Encoding: quoted-printable Message-Id: <87B17220-4EC2-4B8D-9786-CD8FD028EBA1@jordanzimmerman.com> References: To: user@curator.apache.org X-Mailer: Apple Mail (2.1816) X-Virus-Checked: Checked by ClamAV on apache.org You need to give the clients all 3 instances. Otherwise, the clients = won=92t have a server to connect to when you stop node_1. -JZ On Nov 4, 2013, at 7:19 AM, Sznajder ForMailingList = wrote: > Hi >=20 > I ran the LeaderSelectorExample / Example classes on a real Zookeeper = chorum of three nodes > - node_1 > - node_2 > - node_3 >=20 > I start ZK on theses nodes by using: > bin/zkServer.sh start command on each one of three nodes (Is it = necessary? Could I start only one of them? ) >=20 >=20 > Then, I am launching the LeaderSelectorExample by giving it = node_1:2181 as connect string, on each one of the three nodes. > I made two tests: >=20 > - I stop the process on node_1 , the two other nodes continue to take = the leadership one after the other, as usual. >=20 > - I stop ZOOKEEPER on node_1 by calling 'bin/zkServer.sh stop' on = node_1. > In this case, immediatly the current leader prints=20 > "relinquishing leadership" >=20 > But **no one** takes the leadership then. And all the processes stay = stuck... >=20 >=20 > Thanks for your help >=20 > Benjamin >=20