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 D1340200B98 for ; Mon, 3 Oct 2016 09:54:46 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id CFB9D160ACC; Mon, 3 Oct 2016 07:54:46 +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 17CED160ADC for ; Mon, 3 Oct 2016 09:54:45 +0200 (CEST) Received: (qmail 37720 invoked by uid 500); 3 Oct 2016 07:54:44 -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 37585 invoked by uid 99); 3 Oct 2016 07:54:44 -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; Mon, 03 Oct 2016 07:54:44 +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 EC1B5180361; Mon, 3 Oct 2016 07:54:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.32 X-Spam-Level: X-Spam-Status: No, score=-3.32 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999, SPF_PASS=-0.001] autolearn=disabled Received: from mx2-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 bAnCtgT0zKXe; Mon, 3 Oct 2016 07:54:40 +0000 (UTC) Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [119.145.14.66]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 2F2F15F4EC; Mon, 3 Oct 2016 07:54:38 +0000 (UTC) Received: from 172.24.1.60 (EHLO SZXEML429-HUB.china.huawei.com) ([172.24.1.60]) by szxrg03-dlp.huawei.com (MOS 4.4.3-GA FastPath queued) with ESMTP id CIS58666; Mon, 03 Oct 2016 15:54:29 +0800 (CST) Received: from szxeml561-mbx.china.huawei.com ([169.254.5.215]) by SZXEML429-HUB.china.huawei.com ([10.82.67.184]) with mapi id 14.03.0235.001; Mon, 3 Oct 2016 15:54:24 +0800 From: Mohammad arshad To: "user@zookeeper.apache.org" , "dev@zookeeper.apache.org" Subject: ZooKeeper clients does not handle new error codes properly Thread-Topic: ZooKeeper clients does not handle new error codes properly Thread-Index: AdIdS1oqUtrlfcRCSemObzw3G7uxlg== Date: Mon, 3 Oct 2016 07:54:23 +0000 Message-ID: <954962C10920654BBE157862C7272BA540FB134A@szxeml561-mbx.china.huawei.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.18.210.217] Content-Type: multipart/alternative; boundary="_000_954962C10920654BBE157862C7272BA540FB134Aszxeml561mbxchi_" MIME-Version: 1.0 X-CFilter-Loop: Reflected archived-at: Mon, 03 Oct 2016 07:54:47 -0000 --_000_954962C10920654BBE157862C7272BA540FB134Aszxeml561mbxchi_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi All, In Zookeeper rolling upgrade scenario where server is new but client is old= , when sever sends error code which is not understood by a client, client = throws IllegalArgumentException. Generally IllegalArgumentException is not = handled by any of the ZK applications. It is too generic. How to handle thi= s scenario in ZK applications? My understanding is instead of throwing IllegalArgumentException we should = throw a subclass of KeeperException, for example InvalidErrorCodeException,= so that zk apps can take more specific action. Any thoughts? Thanks -Arshad --_000_954962C10920654BBE157862C7272BA540FB134Aszxeml561mbxchi_--