Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 80031 invoked from network); 28 Feb 2008 03:05:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Feb 2008 03:05:46 -0000 Received: (qmail 49374 invoked by uid 500); 28 Feb 2008 03:05:41 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 49333 invoked by uid 500); 28 Feb 2008 03:05:41 -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 49324 invoked by uid 99); 28 Feb 2008 03:05:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Feb 2008 19:05:41 -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, 28 Feb 2008 03:05:15 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 95E0D234C03D for ; Wed, 27 Feb 2008 19:04:51 -0800 (PST) Message-ID: <514937927.1204167891612.JavaMail.jira@brutus> Date: Wed, 27 Feb 2008 19:04:51 -0800 (PST) From: "V.Narayanan (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (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: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-3358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] V.Narayanan updated DERBY-3358: ------------------------------- Attachment: Derby3358_v2.stat Derby3358_v2.diff In the attached patch I have addressed all the comments except the following >d. startMaster(): Why not merge the to tests that give >REPLICATION_MODE_NOT_SUPPORTED in the same if statement? I have moved this test to canSupport as suggested. So I did not need to do this change. I added the comments to the boot method, but am not sure if it matches your expectation. If it does not pls do mention and I shall submit a new patch. I have not changed the comments to active in startMaster, stopMaster and startFailover. Here again I am not sure about the nature of the modification you expected me to do. I request for more help from you here on the style of the comments that would be expected. I shall submit a new patch with the suggested modification. > After an incorrect(unsuccesfull) startMaster comand, further correct startMaster 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, Derby3358_v2.stat > > > Slave and master servers started. > startSlave: > CONNECT 'jdbc:derby://atum11:9999/test;startSlave=true;slaveHost=atum11;slavePort=8989'; > ERROR XRE08: DERBY SQL error: SQLCODE: -1, SQLSTATE: XRE08, SQLERRMC: Replication slave mode started successfully for database 'test'. Connection refused because the database is in replication slave mode. > startMaster without specifying slavePort - will use default? > CONNECT 'jdbc:derby://atum11:8888/test;startMaster=true;slaveHost=atum11'; > ERROR XRE04: DERBY SQL error: SQLCODE: -1, SQLSTATE: XRE04, SQLERRMC: nullXRE04 > 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 > Database Class Loader started - derby.database.classpath='' > 2008-01-29 10:02:53.256 GMT Thread[DRDAConnThread_2,5,main] (XID = 419), (SESSIONID = 0), (DATABASE = test), (DRDAID = {1}), Cleanup action starting > java.sql.SQLException: Could not establish a connection to the peer of the replicated database 'null'. > . > . > Cleanup action completed > 2008-01-29 10:02:53.260 GMT Thread[DRDAConnThread_2,5,main] (DATABASE = test), (DRDAID = {1}), Could not establish a connection to the peer of the replicated database 'null'. > startMaster specyfying slavePort: > CONNECT 'jdbc:derby://atum11:8888/test;startMaster=true;slaveHost=atum11;slavePort=8989'; > ERROR XRE04: DERBY SQL error: SQLCODE: -1, SQLSTATE: XRE04, SQLERRMC: nullXRE04 > master derby.log: > 2008-01-29 10:03:38.201 GMT Thread[DRDAConnThread_2,5,main] (XID = 420), (SESSIONID = 1), (DATABASE = test), (DRDAID = {2}), Cleanup action starting > java.sql.SQLException: Could not establish a connection to the peer of the replicated database 'null'. > . > . > Cleanup action completed > 2008-01-29 10:03:38.205 GMT Thread[DRDAConnThread_2,5,main] (DATABASE = test), (DRDAID = {2}), Could not establish a connection to the peer of the 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. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.