Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 99496 invoked from network); 15 May 2009 13:59:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 May 2009 13:59:08 -0000 Received: (qmail 53501 invoked by uid 500); 15 May 2009 13:59:08 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 53450 invoked by uid 500); 15 May 2009 13:59:08 -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 53442 invoked by uid 99); 15 May 2009 13:59:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 May 2009 13:59:08 +0000 X-ASF-Spam-Status: No, hits=-1998.8 required=10.0 tests=ALL_TRUSTED,FS_REPLICA 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; Fri, 15 May 2009 13:59:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 270F7234C055 for ; Fri, 15 May 2009 06:58:46 -0700 (PDT) Message-ID: <535188225.1242395926158.JavaMail.jira@brutus> Date: Fri, 15 May 2009 06:58:46 -0700 (PDT) From: "Dag H. Wanvik (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Closed: (DERBY-4231) testReplication_Local_StateTest_part1: Unexpected SQL state. expected: but was: In-Reply-To: <714476502.1242344325543.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-4231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dag H. Wanvik closed DERBY-4231. -------------------------------- Resolution: Duplicate Duplicate of DERBY-3719 > testReplication_Local_StateTest_part1: Unexpected SQL state. expected: but was: > ------------------------------------------------------------------------------------------------- > > Key: DERBY-4231 > URL: https://issues.apache.org/jira/browse/DERBY-4231 > Project: Derby > Issue Type: Bug > Components: Regression Test Failure, Replication > Reporter: Dag H. Wanvik > Priority: Minor > Attachments: derby.log.master, derby.log.slave > > > This is another instability in the replication tests I see occasionally. I was able to reproduce it just now in of of 70 runs. > 1) testReplication_Local_StateTest_part1(org.apache.derbyTesting.functionTests.tests.replicationTests.ReplicationRun_Local_StateTest_part1)junit.framework.ComparisonFailure: Unexpected SQL state. expected: but was: > at org.apache.derbyTesting.junit.BaseJDBCTestCase.assertSQLState(BaseJDBCTestCase.java:762) > at org.apache.derbyTesting.junit.BaseJDBCTestCase.assertSQLState(BaseJDBCTestCase.java:811) > at org.apache.derbyTesting.functionTests.tests.replicationTests.ReplicationRun.failOver_direct(ReplicationRun.java:1382) > at org.apache.derbyTesting.functionTests.tests.replicationTests.ReplicationRun.failOver(ReplicationRun.java:1303) > at org.apache.derbyTesting.functionTests.tests.replicationTests.ReplicationRun_Local_StateTest_part1.testReplication_Local_StateTest_part1(ReplicationRun_Local_StateTest_part1.java:168) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:105) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) > at junit.extensions.TestSetup$1.protect(TestSetup.java:21) > at junit.extensions.TestSetup.run(TestSetup.java:25) > Caused by: java.sql.SQLException: DERBY SQL error: SQLCODE: -1, SQLSTATE: XRE07, SQLERRMC: Could not perform operation because the database is not in replication master mode. > at org.apache.derby.client.am.SQLExceptionFactory40.getSQLException(SQLExceptionFactory40.java:96) > at org.apache.derby.client.am.SqlException.getSQLException(SqlException.java:358) > at org.apache.derby.jdbc.ClientDriver.connect(ClientDriver.java:149) > at java.sql.DriverManager.getConnection(DriverManager.java:582) > at java.sql.DriverManager.getConnection(DriverManager.java:207) > at org.apache.derbyTesting.functionTests.tests.replicationTests.ReplicationRun.failOver_direct(ReplicationRun.java:1369) > ... 24 more > Caused by: org.apache.derby.client.am.SqlException: DERBY SQL error: SQLCODE: -1, SQLSTATE: XRE07, SQLERRMC: Could not perform operation because the database is not in replication master mode. > at org.apache.derby.client.am.Connection.completeSqlca(Connection.java:2082) > at org.apache.derby.client.net.NetConnectionReply.parseRdbAccessFailed(NetConnectionReply.java:540) > at org.apache.derby.client.net.NetConnectionReply.parseAccessRdbError(NetConnectionReply.java:433) > at org.apache.derby.client.net.NetConnectionReply.parseACCRDBreply(NetConnectionReply.java:297) > at org.apache.derby.client.net.NetConnectionReply.readAccessDatabase(NetConnectionReply.java:121) > at org.apache.derby.client.net.NetConnection.readSecurityCheckAndAccessRdb(NetConnection.java:835) > at org.apache.derby.client.net.NetConnection.flowSecurityCheckAndAccessRdb(NetConnection.java:759) > at org.apache.derby.client.net.NetConnection.flowUSRIDONLconnect(NetConnection.java:592) > at org.apache.derby.client.net.NetConnection.flowConnect(NetConnection.java:399) > at org.apache.derby.client.net.NetConnection.(NetConnection.java:219) > at org.apache.derby.client.net.NetConnection40.(NetConnection40.java:77) > at org.apache.derby.client.net.ClientJDBCObjectFactoryImpl40.newNetConnection(ClientJDBCObjectFactoryImpl40.java:269) > at org.apache.derby.jdbc.ClientDriver.connect(ClientDriver.java:140) > ... 27 more > I attach derby.log for master and slave. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.