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 4599110747 for ; Mon, 10 Nov 2014 22:36:43 +0000 (UTC) Received: (qmail 8001 invoked by uid 500); 10 Nov 2014 22:36:42 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 7952 invoked by uid 500); 10 Nov 2014 22:36:42 -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 7932 invoked by uid 99); 10 Nov 2014 22:36:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Nov 2014 22:36:42 +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 (athena.apache.org: domain of shralex@gmail.com designates 209.85.213.45 as permitted sender) Received: from [209.85.213.45] (HELO mail-yh0-f45.google.com) (209.85.213.45) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Nov 2014 22:36:37 +0000 Received: by mail-yh0-f45.google.com with SMTP id f73so1769695yha.18 for ; Mon, 10 Nov 2014 14:34:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=ZgKTgLVqI2ckHJ2atNdpigFkbFHeixN2/pR+pLXfdrE=; b=vFBB7uWSvfPn8+ieCcMFTjVkHtV0MPI7V8GCRUVensitgh9pRndyV57Uv+3GHqkx0o R02dEk/A3p+4jAIbpyk7iMGX9uUim8n2VwOvO6tXErJ4ZZ38l0gHztuCnjX96+KRIs9O Zr9g8BmLfzV0jg5TvQymag7NuAz+kVnIiVnRaGZg522UAhL9LBL/X6ECc2JSoYPKFp+N Qbs7HmpSMG0Op8M3xbvsyIdjIxbyk4BO6mQdhsPtBbjstkOyxiUquYESBgFml/zCgQlK bOD6exRd7GsLkkXBv9g05/U1ROoLEqhcaOh7oTCH9b4qiqTUpDSafNhDf/rlJ8ZwIrGO uxPQ== X-Received: by 10.220.118.194 with SMTP id w2mr12289806vcq.24.1415658887332; Mon, 10 Nov 2014 14:34:47 -0800 (PST) MIME-Version: 1.0 Received: by 10.31.163.2 with HTTP; Mon, 10 Nov 2014 14:34:27 -0800 (PST) In-Reply-To: References: From: Alexander Shraer Date: Mon, 10 Nov 2014 14:34:27 -0800 Message-ID: Subject: Re: NewConfigNoQuorum? To: Jordan Zimmerman Cc: "user@zookeeper.apache.org" Content-Type: multipart/alternative; boundary=001a1132f4ba1a4a7d050788c517 X-Virus-Checked: Checked by ClamAV on apache.org --001a1132f4ba1a4a7d050788c517 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Not sure. If you know how long state copying & syncing should take then you could wait for that time, retry and then throw it back if it still doesn't work. On Mon, Nov 10, 2014 at 2:18 PM, Jordan Zimmerman < jordan@jordanzimmerman.com> wrote: > So, what=E2=80=99s the correct way to handle the exception? Should Curato= r throw > it back to the user or retry? > > -JZ > > > On November 10, 2014 at 5:14:26 PM, Alexander Shraer (shralex@gmail.com) > wrote: > > This happens if you're trying to reconfigure to a new configuration S' bu= t > there is no quorum of S' connected > and synced with the current leader. This could be either transient or mor= e > serious, depends... > For example it could be the case that you are trying to add a few servers > and there is a lot of state so > syncing isn't complete yet and you just need to retry later. On the other > hand it could be that S' includes > servers that have crashed or don't exist, so retrying won't help. > > On Mon, Nov 10, 2014 at 8:54 AM, Ivan Kelly wrote: > > > Isn't this a transient error that occurs while the cluster is > > reconfiguring? Seems to me that a retry would be correct. > > > > -Ivan > > > > On 10 November 2014 16:56, Jordan Zimmerman > > > wrote: > > > In Alexander=E2=80=99s ZK meetup talk, he mentioned a new exception: > > NewConfigNoQuorum. How should Curator handle this? Should the reconfig > > operation just be retried when this is thrown or does it imply a deeper > > problem? > > > > > > -Jordan > > > > > > > > > > --001a1132f4ba1a4a7d050788c517--