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 C4E4D188B7 for ; Thu, 31 Mar 2016 23:54:17 +0000 (UTC) Received: (qmail 45845 invoked by uid 500); 31 Mar 2016 23:54:17 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 45787 invoked by uid 500); 31 Mar 2016 23:54:17 -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 45775 invoked by uid 99); 31 Mar 2016 23:54:16 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Mar 2016 23:54:16 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 3D8D118049A for ; Thu, 31 Mar 2016 23:54:16 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.003 X-Spam-Level: X-Spam-Status: No, score=-0.003 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=junipernetworks.onmicrosoft.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id BZPJKabVGuLO for ; Thu, 31 Mar 2016 23:54:14 +0000 (UTC) Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0113.outbound.protection.outlook.com [65.55.169.113]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id B45FE5F282 for ; Thu, 31 Mar 2016 23:54:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=junipernetworks.onmicrosoft.com; s=selector1-juniper-net; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=RPskptDCDZ52AlCpCFx22bzjO1WZ0Ga/pbh853B+6dA=; b=U9sQZK6kdwVtkn8dGQyi6P7Qgy/6x3kH+dF+Tsb6V2Zqcn5nOyQbGTpaxdnBEYOyvjtOldK55n/yS6j6bCFPh7yzcMIviM2r78Nqfgo6/BnDvz+RrL2JFtvpgljSUTquh1cWpHyYIhEJ2OE2tbjee97Gqza23LUR6Y0ZF2oHA68= Received: from BN3PR0501MB1315.namprd05.prod.outlook.com (10.160.183.16) by BN3PR0501MB1316.namprd05.prod.outlook.com (10.160.183.17) with Microsoft SMTP Server (TLS) id 15.1.447.15; Thu, 31 Mar 2016 23:54:07 +0000 Received: from BN3PR0501MB1315.namprd05.prod.outlook.com ([10.160.183.16]) by BN3PR0501MB1315.namprd05.prod.outlook.com ([10.160.183.16]) with mapi id 15.01.0443.017; Thu, 31 Mar 2016 23:54:07 +0000 From: Pramod Srinivasan To: "user@zookeeper.apache.org" Subject: automatic update of server set at the client on reconfig Thread-Topic: automatic update of server set at the client on reconfig Thread-Index: AQHRi6icSK19hCpDuEuCuH8sHkExNQ== Date: Thu, 31 Mar 2016 23:54:07 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.6.0.151221 authentication-results: zookeeper.apache.org; dkim=none (message not signed) header.d=none;zookeeper.apache.org; dmarc=none action=none header.from=juniper.net; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [66.129.239.13] x-ms-office365-filtering-correlation-id: 853ef1b9-fb2d-4828-964b-08d359bfbf4c x-microsoft-exchange-diagnostics: 1;BN3PR0501MB1316;5:8jBWfJqsHKWrugxhqP8hIpA27OmmOWDDVLD4mn0I3Dygape30GES4mi1ctoqo1nLASYwHh3eEXsdZi/67J71DYuOeYmbzF+gMVhxvHYXVqakkvmYKm7qDbBQEV7ObsaPLnu76NuHieQuyecNEFczcQ==;24:DMJ3SOfv0eBqN9jxrB4iwjy1DIcNEh0DAj5QY0EiJdBrzS5tdfsK1QzmWdMN+CVB+IXtNj/qJv4baYXjXAYSqEwRpjbJ+CCIAfVCrp7ITAA= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0501MB1316; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046);SRVR:BN3PR0501MB1316;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0501MB1316; x-forefront-prvs: 0898A6E028 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(164054003)(6116002)(102836003)(3846002)(122556002)(86362001)(50986999)(81166005)(66066001)(54356999)(107886002)(586003)(4001350100001)(450100001)(2501003)(110136002)(87936001)(92566002)(83506001)(2900100001)(10400500002)(3660700001)(189998001)(5008740100001)(77096005)(99286002)(11100500001)(1220700001)(106116001)(1096002)(3280700002)(229853001)(36756003)(5002640100001)(2351001)(2906002)(5004730100002);DIR:OUT;SFP:1102;SCL:1;SRVR:BN3PR0501MB1316;H:BN3PR0501MB1315.namprd05.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-ID: <4220C740AFD1144481455E543299CB8F@namprd05.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: juniper.net X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Mar 2016 23:54:07.1644 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: bea78b3c-4cdb-4130-854a-1d193232e5f4 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0501MB1316 Hello Folks I am playing with reconfig to grow the zookeeper cluster dynamically, what I observed is that the C client library (don=B9t know about the java client= ) does not automatically reconfigure to the new server set after reconfig. So if I go from Zookeeper server set [a, b, c] -> [a] -> [a, d, f] -> [d, f, g], the client who was connected to server [a, b, c] will loose connectivity to zookeeper and the session will close once we reach [d, f, g]. If my application monitors the server config changes and feeds the client library with the new server set using zoo_set_servers, the session continues to be in connected state. Is this observations correct? Any reason why the C client library should not automatically reconfigure itself with the server set by monitoring the zookeeper config path? Thanks, Pramod