Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C3D40200CBE for ; Fri, 23 Jun 2017 07:39:28 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C2780160BF1; Fri, 23 Jun 2017 05:39:28 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E2398160BE7 for ; Fri, 23 Jun 2017 07:39:27 +0200 (CEST) Received: (qmail 86878 invoked by uid 500); 23 Jun 2017 05:39:26 -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 86866 invoked by uid 99); 23 Jun 2017 05:39:26 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jun 2017 05:39:26 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 278431A026E for ; Fri, 23 Jun 2017 05:39:26 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Fw-SqRxO7WDX for ; Fri, 23 Jun 2017 05:39:24 +0000 (UTC) Received: from mail-lf0-f43.google.com (mail-lf0-f43.google.com [209.85.215.43]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 8C6AA5F3F0 for ; Fri, 23 Jun 2017 05:39:23 +0000 (UTC) Received: by mail-lf0-f43.google.com with SMTP id p189so23773707lfe.2 for ; Thu, 22 Jun 2017 22:39:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=hPxKTjYm6xXoypKdTZa8pnWcofmejZ+BXF9iLKTzwWg=; b=twC/DcJ487fEmaUb/UUuOOhymbFgeQuIYpw7xec9zCVjDy9nL5WP/eAAy376uf05bD 7Ki1sJ2dlfrC2D4cDtrdX76mRghQjPTlQzsIyx0z5flMMYo/ntXASj19mftXSIG9yTin LtnkOmK/uROM63wRt3nRo9gg+CWaQRBD4X/l1PHwmPgjBYB7gV9xulPDN8q32gtCgL1B DopWciKVknkg6pEiU51rzLHTuKQ+ULmUzyRo9CPwEG66LxKeuRzAxS8uzg5Yc3SLYHBW kWZlwXKhdGuUTzobgsSU4KAGaonFJBkVWD1aktp5vIHU9zKXk4/5A4ySUETJaZQIQ0pp T4kA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=hPxKTjYm6xXoypKdTZa8pnWcofmejZ+BXF9iLKTzwWg=; b=E6+B20+n4HzNrjD6JhQ6tR3EBo3L0mmLspzefN3wIEp9KGlYixrzhePIoHzBOOZDii ZEnytt8qT/0wDSedUHKVnAL0zBJghjr6EyGyOZ5lFWNIZc+Uu3SquKHCZ/XIdHXpGaby SPJt2A0Utl4ynCqX0J9zHSJYmLBB+Gr1bZcENnyZz9+e8t/nP/jMIKfRHHv3rO0CF6mn dFN654AcdzDcaxpH5ecDPdO3TYutLUzMf/N721u2B5ug6y47iaUwR8Eh+uUxk1Q3UYro jkuTdWpWY1WUuzBMUVyIZ8FcP8fXp77sEmbUiCJVrHyw3gAtRDID+8vNL9BLNo5jK5ar Zj7A== X-Gm-Message-State: AKS2vOxNdsgW04dBZP0tZe/9wlz8mpv3Atow08Xc+NxNmuherHdiLcmW M79r+4eA4qTFfsqimkN2rUaVkq5JQQ== X-Received: by 10.46.32.16 with SMTP id g16mr609343ljg.125.1498196362000; Thu, 22 Jun 2017 22:39:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.46.84.3 with HTTP; Thu, 22 Jun 2017 22:39:01 -0700 (PDT) In-Reply-To: References: From: Alexander Shraer Date: Thu, 22 Jun 2017 22:39:01 -0700 Message-ID: Subject: Re: How to add nodes to a Zookeeper 3.5.3-beta ensemble with reconfigEnabled=false To: "user@zookeeper.apache.org" Content-Type: multipart/alternative; boundary="001a1142b7c8f6018705529a055f" archived-at: Fri, 23 Jun 2017 05:39:29 -0000 --001a1142b7c8f6018705529a055f Content-Type: text/plain; charset="UTF-8" Hi Michael, The described behavior is the intended one - in 3.5 configuration is part of the synced state and is updated when the server syncs with the leader. The only rolling upgrade I tested was to upgrade the software version of the servers - this should still work. But I didn't try to support rolling upgrade for upgrading the configuration, since this should be done through reconfig. I'm still not sure what's the purpose of this flag btw. Why would someone want to do rolling restarts which are prone to inconsistencies and data loss, when they can use reconfig ? Alex On Thu, Jun 22, 2017 at 10:18 PM, Michael Han wrote: > reconfigEnabled only disables reconfig command when reconfigEnabled=false; > it does not disable the feature by mute all code paths of the reconfig > feature introduced in ZOOKEEPER-107. So regardless of the value of > reconfigEnabled, > 3.5.x ZK will create static config file and dynamic config file in any > cases. > > This might create a problem for users who want to do rolling upgrade the > old way - because now the critical config information is not stored in > zoo.cfg anymore and modifying cfg.dynamic file manually will not work > because a reconfig needs to go through quorum processors. I think this is > the problem described in the thread. > > Alex, is reconfig compatible with rolling upgrade? I don't find anything > mentioned in ZOOKEEPER-107 about this. Currently I think the answer is no, > which means for 3.5.x the only way to change membership of cluster is > through reconfig. Could you confirm this conclusion? If that is the case we > need patch the reconfigEnabled so it completely disable all code path of > the reconfig feature to leave the static zoo.cfg intact. > > > On Thu, Jun 22, 2017 at 9:35 PM, Alexander Shraer > wrote: > > > This sounds like a bug in the implementation of reconfigEnabled. > > Could you please open a JIRA with the description you provided ? > > > > Out of curiosity, why do you disable reconfig ? It is intended exactly > > to perform the changes you're trying to make, in a simple and correct > way. > > > > Thanks, > > Alex > > > > On Thu, Jun 22, 2017 at 3:17 PM, Guillermo Vega-Toro < > gvegator@us.ibm.com> > > wrote: > > > > > I'm still unable to make configuration changes when > reconfigEnabled=false > > > by updating zoo.cfg and restarting the servers. > > > > > > For example, I want to change the weight of one of my servers. I edit > > > zoo.cfg on the server I want to change, and specify the group, > server.x, > > > and weight.x properties for all servers. I also remove the > > > dynamicConfigFile property and delete the dynamic config file. I then > > > restart the server. As soon as the server starts, the dynamic config > file > > > re-appears, and it has the last configuration, as if the changes I made > > in > > > zoo.cfg were ignored. The dynamic configuration file on the other > servers > > > also stays the same. > > > > > > What would be the correct way to achieve this (change a server's > weight, > > > or role) when reconfigEnabled=false and the CLI reconfig command cannot > > be > > > used? > > > > > > Thanks > > > > > > > > > > > > -- > Cheers > Michael. > --001a1142b7c8f6018705529a055f--