Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 10329 invoked from network); 23 Sep 2010 20:03:55 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Sep 2010 20:03:55 -0000 Received: (qmail 57885 invoked by uid 500); 23 Sep 2010 20:03:54 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 57827 invoked by uid 500); 23 Sep 2010 20:03:54 -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 57820 invoked by uid 99); 23 Sep 2010 20:03:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Sep 2010 20:03:54 +0000 X-ASF-Spam-Status: No, hits=-1996.4 required=10.0 tests=ALL_TRUSTED,FS_REPLICA X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Sep 2010 20:03:53 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8NK3W5v008889 for ; Thu, 23 Sep 2010 20:03:33 GMT Message-ID: <636927.370761285272212749.JavaMail.jira@thor> Date: Thu, 23 Sep 2010 16:03:32 -0400 (EDT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-4635) intermittent failure in (...)replicationTests.ReplicationRun_Local_1Indexing.testReplication_Local_1_Indexing In-Reply-To: <26214587.4701272483828470.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-4635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12914197#action_12914197 ] Knut Anders Hatlen commented on DERBY-4635: ------------------------------------------- Discussed this issue briefly with Kathey and Lily on IRC. Some thoughts: ReplicationRun.makeReadyForReplication() has called initMaster() before it fails in bootMasterDatabase(). initMaster() is supposed to remove all old files in the db_master directory, but it cannot have done so in this case, otherwise we wouldn't have seen this error. Unfortunately, it only prints a message to the console if it cannot delete a file. It would probably be better if it just failed immediately when it failed to delete a file, as that would make it easier to pinpoint the cause of the failure. And even better if each test case had cleaned the db_master directory after it has completed instead of before it has started, so that we can tell exactly which test case is not shutting down cleanly. > intermittent failure in (...)replicationTests.ReplicationRun_Local_1Indexing.testReplication_Local_1_Indexing > ------------------------------------------------------------------------------------------------------------- > > Key: DERBY-4635 > URL: https://issues.apache.org/jira/browse/DERBY-4635 > Project: Derby > Issue Type: Bug > Components: Test > Affects Versions: 10.6.1.0, 10.7.0.0 > Reporter: Myrna van Lunteren > Priority: Minor > > During test cycle for 10.6 RC1 (10.6.1.0 build 938214) on windows (win2008, ibm15 sr10) I saw a failure in org.apache.derbyTesting.functionTests.tests.replicationTests.ReplicationRun_Local_1Indexing.testReplication_Local_1_Indexing. > This same failure was also reported to the derby-dev list in this thread: > http://mail-archives.apache.org/mod_mbox/db-derby-dev/201004.mbox/%3c4BBB1323.9090806@sun.com%3e > Here's my stack trace (I modified the physical paths): > 1) testReplication_Local_1_Indexing(org.apache.derbyTesting.functionTests.tests.replicationTests.ReplicationRun_Local_1Indexing)java.sql.SQLException: DERBY SQL error: SQLCODE: -1, SQLSTATE: XJ041, SQLERRMC: Failed to create database 'C:\jartest\db_master\wombat', see the next exception for details.::SQLSTATE: XBM0JDirectory C:\jartest\db_master\C:\jartest\db_master\wombat already exists. > at org.apache.derby.client.am.SQLExceptionFactory.getSQLException(Unknown Source) > at org.apache.derby.client.am.SqlException.getSQLException(Unknown Source) > at org.apache.derby.jdbc.ClientDriver.connect(Unknown Source) > at java.sql.DriverManager.getConnection(DriverManager.java:572) > at java.sql.DriverManager.getConnection(DriverManager.java:218) > at org.apache.derbyTesting.functionTests.tests.replicationTests.ReplicationRun.bootMasterDatabase(ReplicationRun.java:863) > at org.apache.derbyTesting.functionTests.tests.replicationTests.ReplicationRun.makeReadyForReplication(ReplicationRun.java:2746) > at org.apache.derbyTesting.functionTests.tests.replicationTests.ReplicationRun_Local_1Indexing.testReplication_Local_1_Indexing(ReplicationRun_Local_1Indexing.java:70) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:109) > at org.apache.derbyTesting.functionTests.tests.replicationTests.ReplicationRun.runBare(ReplicationRun.java:207) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) > at junit.extensions.TestSetup$1.protect(TestSetup.java:19) > at junit.extensions.TestSetup.run(TestSetup.java:23) > Caused by: org.apache.derby.client.am.SqlException: DERBY SQL error: SQLCODE: -1, SQLSTATE: XJ041, SQLERRMC: Failed to create database 'C:\jartest\db_master\wombat', see the next exception for details.::SQLSTATE: XBM0JDirectory C:\jartest\db_master\C:\jartest\db_master\wombat already exists. > at org.apache.derby.client.am.Connection.completeSqlca(Unknown Source) > at org.apache.derby.client.net.NetConnectionReply.parseRdbAccessFailed(Unknown Source) > at org.apache.derby.client.net.NetConnectionReply.parseAccessRdbError(Unknown Source) > at org.apache.derby.client.net.NetConnectionReply.parseACCRDBreply(Unknown Source) > at org.apache.derby.client.net.NetConnectionReply.readAccessDatabase(Unknown Source) > at org.apache.derby.client.net.NetConnection.readSecurityCheckAndAccessRdb(Unknown Source) > at org.apache.derby.client.net.NetConnection.flowSecurityCheckAndAccessRdb(Unknown Source) > at org.apache.derby.client.net.NetConnection.flowUSRIDONLconnect(Unknown Source) > at org.apache.derby.client.net.NetConnection.flowConnect(Unknown Source) > at org.apache.derby.client.net.NetConnection.(Unknown Source) > at org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newNetConnection(Unknown Source) > ... 33 more -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.