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 C8547D69C for ; Thu, 13 Sep 2012 17:48:16 +0000 (UTC) Received: (qmail 92807 invoked by uid 500); 13 Sep 2012 17:48:16 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 92765 invoked by uid 500); 13 Sep 2012 17:48:16 -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 92754 invoked by uid 99); 13 Sep 2012 17:48:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2012 17:48:16 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.160.42] (HELO mail-pb0-f42.google.com) (209.85.160.42) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2012 17:48:10 +0000 Received: by pbbrp8 with SMTP id rp8so3478113pbb.15 for ; Thu, 13 Sep 2012 10:47:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=iRzGehQttTF3F61Q5v3SEfbRkz4pdAvIk3hc52gsNJI=; b=QKtQGgu2gvNE4NCPZV6QCptYywWnwtLZUoZiIhUZvks85oECH86eNyLW3yikjhF1sy OkW6Qy3rT3wYorZj/wfeI+2ytLaMMwfV8XmTV3Hyo9Fd2rZNhuxqfoi5Hq/EDE9sFIfb PvVyHT6zWUCVB0hC8BEuARG7sFAExovoXRsjcmrUkNKstmGp/awG1I4TOdqYLdJgLtgS j/9e/+gZivE8/ehkXEEZDb6/lnKRA0vgGmLPaXhrv+B1KGNtXV88r9jRAcDfp2ibxkOF XNSIJgkL4q2WFqe4BIrwOOJTsc4UJs85cDUCKiT2KuDGz/FiiwrBsnZFQ8GcOB/Z1VKc 1XPg== Received: by 10.66.78.97 with SMTP id a1mr231191pax.34.1347558468782; Thu, 13 Sep 2012 10:47:48 -0700 (PDT) Received: from [192.168.2.6] (70-36-159-4.dsl.dynamic.sonic.net. [70.36.159.4]) by mx.google.com with ESMTPS id py9sm12733983pbb.20.2012.09.13.10.47.47 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 13 Sep 2012 10:47:48 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1486\)) Subject: =?windows-1252?Q?Re=3A_Odd_error_naming=85_NotReadOnly_when_the_?= =?windows-1252?Q?server_*is*_read-only?= From: Ben Bangert In-Reply-To: Date: Thu, 13 Sep 2012 10:47:46 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1ED7DCAA-3993-407C-AEAD-7F750E891C86@groovie.org> To: user@zookeeper.apache.org X-Mailer: Apple Mail (2.1486) X-Gm-Message-State: ALoCoQnmsciEkVSPP0FfhX/HTrjx0P/RoMN+cTfoJjBDKc3wcLXSOremapGizqYb4H7ZxmLxDcYa X-Virus-Checked: Checked by ClamAV on apache.org On Sep 11, 2012, at 10:28 AM, Henry Robinson wrote: > What do you think a good exception name would be? (Or do you think an > exception is the wrong error path here?) Given that the other errors all reflect what specifically is responsible = for the error given the servers state, I was expecting an error like: ServerIsReadOnly Which clearly indicates the call failed because the server is read-only. = The concept of "read-only commands" is kind of strange, which is what = the current NotReadOnly exception refers to (the call itself is not a = read-only call). ServerIsReadOnly fits into the current scheme of: Command X failed due to condition Y on the server. > My view is that the exception is badly named, and should indicate the > actual error, like NodeNotWriteable or similar. It is, unfortunately, = hard > to make these changes in minor releases though, although I think we = could > consider it for 3.5. Makes sense. Cheers, Ben=