Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 72915 invoked from network); 6 Sep 2007 00:07:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Sep 2007 00:07:35 -0000 Received: (qmail 66838 invoked by uid 500); 6 Sep 2007 00:07:29 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 66808 invoked by uid 500); 6 Sep 2007 00:07:29 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 66799 invoked by uid 99); 6 Sep 2007 00:07:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2007 17:07:29 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=FS_REPLICA,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [192.18.6.24] (HELO gmp-eb-mail-2.sun.com) (192.18.6.24) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Sep 2007 00:08:42 +0000 Received: from fe-emea-10.sun.com (gmp-eb-lb-2-fe1.eu.sun.com [192.18.6.10]) by gmp-eb-mail-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id l86071n8000530 for ; Thu, 6 Sep 2007 00:07:02 GMT Received: from conversion-daemon.fe-emea-10.sun.com by fe-emea-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0JNX00L016ZC7100@fe-emea-10.sun.com> (original mail from Dag.Wanvik@Sun.COM) for derby-dev@db.apache.org; Thu, 06 Sep 2007 01:07:01 +0100 (BST) Received: from khepri05.norway.sun.com ([129.159.112.194]) by fe-emea-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0JNX00L4D6ZOLS00@fe-emea-10.sun.com> for derby-dev@db.apache.org; Thu, 06 Sep 2007 01:07:01 +0100 (BST) Date: Thu, 06 Sep 2007 02:07:00 +0200 From: Dag.Wanvik@Sun.COM (Dag H. Wanvik) Subject: Re: [jira] Commented: (DERBY-3021) Replication: Add a ReplicationSlave controller that will manage replication on the slave side In-reply-to: <14263519.1188985113106.JavaMail.root@brutus> Sender: Dag.Wanvik@Sun.COM To: derby-dev@db.apache.org Message-id: MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: QUOTED-PRINTABLE References: <14263519.1188985113106.JavaMail.root@brutus> User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.0.50 (usg-unix-v) X-Virus-Checked: Checked by ClamAV on apache.org "J=F8rgen L=F8land (JIRA)" writes: > Any thoughts on whether the most appropriate error code for this wo= uld be: > > * XRE02.C since it is a replication error message with session seve= rity, or > * 0800x (e.g., 08006 - connection failure) since this is a connecti= on error?=20 08006 seems to be a network client error, wouldn't a new 08004 (the server is there but rejects the connection for some reason...) be mor= e in the spirit of existing allocations? But I am OK with XRE02.C, too. I looked at some other non-"08xxx" which have session severity level in Derby, but am not sure they give much guidance. Maybe we should prefer 08004 when reasonble, since this has standard SQL semantics (not implementation defined). In JDBC 4 this SQLSTATE class has a defined mapping to SQL(Non)TransientConnectionExceptions, too. I must admit I feel a bit out on a limb, here, so it someone has any general guidelines for how to allocate new error codes in Derby, I, for one, would appreciate it. Dag