Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 48770 invoked from network); 6 Mar 2008 13:44:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Mar 2008 13:44:19 -0000 Received: (qmail 23913 invoked by uid 500); 6 Mar 2008 13:44:13 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 23797 invoked by uid 500); 6 Mar 2008 13:44:13 -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 23788 invoked by uid 99); 6 Mar 2008 13:44:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Mar 2008 05:44:13 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Mar 2008 13:43:45 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 34C8D234C096 for ; Thu, 6 Mar 2008 05:43:02 -0800 (PST) Message-ID: <1536012377.1204810982214.JavaMail.jira@brutus> Date: Thu, 6 Mar 2008 05:43:02 -0800 (PST) From: =?utf-8?Q?J=C3=B8rgen_L=C3=B8land_=28JIRA=29?= To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-3358) After an incorrect(unsuccesfull) startMaster comand, further correct startMaster attempts also fail. In-Reply-To: <17253630.1201601978178.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-3358?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1257= 5705#action_12575705 ]=20 J=C3=B8rgen L=C3=B8land commented on DERBY-3358: -------------------------------------- Since stopMaster throws StandardException - isn't it a bit overkill to catc= h Throwable? + try { + stopMaster(); + } catch (Throwable t_stopmaster) { + //The stop master threw an exception saying the replication + //has been stopped already. + ReplicationLogger. + logError(MessageId.REPLICATION_MASTER_STOPPED, t, dbname); + } BTW: did you mean to log the stack trace of t here or should it be t_stopma= ster? > After an incorrect(unsuccesfull) startMaster comand, further correct star= tMaster attempts also fail. > -------------------------------------------------------------------------= --------------------------- > > Key: DERBY-3358 > URL: https://issues.apache.org/jira/browse/DERBY-3358 > Project: Derby > Issue Type: Bug > Components: Replication > Affects Versions: 10.4.0.0 > Environment: Trunk (615841) + patch DERBY-3205/stopSlave_v1b > Reporter: Ole Solberg > Assignee: V.Narayanan > Attachments: Derby3358.diff, Derby3358.stat, Derby3358_v2.diff, D= erby3358_v2.stat, Derby3358_v3.diff, Derby3358_v3.stat, Derby3358_v4.diff, = Derby3358_v4.stat > > > Slave and master servers started. > startSlave: > CONNECT 'jdbc:derby://atum11:9999/test;startSlave=3Dtrue;slaveHost=3Datum= 11;slavePort=3D8989'; > ERROR XRE08: DERBY SQL error: SQLCODE: -1, SQLSTATE: XRE08, SQLERRMC: Rep= lication slave mode started successfully for database 'test'. Connection re= fused because the database is in replication slave mode.=20 > startMaster without specifying slavePort - will use default? > CONNECT 'jdbc:derby://atum11:8888/test;startMaster=3Dtrue;slaveHost=3Datu= m11'; > ERROR XRE04: DERBY SQL error: SQLCODE: -1, SQLSTATE: XRE04, SQLERRMC: nul= lXRE04 > master derby.log: > 2008-01-29 10:02:53.097 GMT: > Booting Derby version The Apache Software Foundation - Apache Derby - 10= .4.0.0 alpha - (615841M): instance c013800d-0117-c4fb-9156-000003bf6570 > on database directory /export/home/tmp/os136789/Replication_common_Trunk/= master/test =20 > Database Class Loader started - derby.database.classpath=3D'' > 2008-01-29 10:02:53.256 GMT Thread[DRDAConnThread_2,5,main] (XID =3D 419)= , (SESSIONID =3D 0), (DATABASE =3D test), (DRDAID =3D {1}), Cleanup action = starting > java.sql.SQLException: Could not establish a connection to the peer of th= e replicated database 'null'. > . > . > Cleanup action completed > 2008-01-29 10:02:53.260 GMT Thread[DRDAConnThread_2,5,main] (DATABASE =3D= test), (DRDAID =3D {1}), Could not establish a connection to the peer of t= he replicated database 'null'. > startMaster specyfying slavePort: > CONNECT 'jdbc:derby://atum11:8888/test;startMaster=3Dtrue;slaveHost=3Datu= m11;slavePort=3D8989'; > ERROR XRE04: DERBY SQL error: SQLCODE: -1, SQLSTATE: XRE04, SQLERRMC: nul= lXRE04 > master derby.log: > 2008-01-29 10:03:38.201 GMT Thread[DRDAConnThread_2,5,main] (XID =3D 420)= , (SESSIONID =3D 1), (DATABASE =3D test), (DRDAID =3D {2}), Cleanup action = starting > java.sql.SQLException: Could not establish a connection to the peer of th= e replicated database 'null'. > . > . > Cleanup action completed > 2008-01-29 10:03:38.205 GMT Thread[DRDAConnThread_2,5,main] (DATABASE =3D= test), (DRDAID =3D {2}), Could not establish a connection to the peer of t= he replicated database 'null'. > Additional observation/comment: > ---------------------------------------- > It would be helpful for debugging if slaveHost and slavePort were written= in error messages and into derby.log. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.