[ https://issues.apache.org/jira/browse/DERBY-7031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16753656#comment-16753656 ]
Rick Hillegas commented on DERBY-7031: -------------------------------------- The test failures are caused by a difference in the behavior of upgrading from 10.14 versus upgrading from 10.15. When unloading the 10.14 classes, the Derby drivers are not currently registered. However, when unloading the 10.15 classes, the Derby drivers are registered. I don't understand what causes this difference in behavior. I can make the upgrade tests succeed by changing this expectation. The difference in behavior does not change anything which the upgrade tests are deliberately measuring--it merely makes the 10.15 engine classes eligible for garbage collection. The 10.14 classes must already be eligible for garbage collection. Maybe the new behavior is a side-effect of the changes made to the policy files as part of 10.15. Maybe not. I am attaching three files which verify that there is nothing obviously wrong with 10.15 shutdown: * DriverUnloadingTest.java - This test verifies that the engine driver is unloaded on graceful shutdown--provided that the security policy grants to the engine the deregisterDriver privilege as our user documentation advises. * driverUnloadingTest_withPermission_10_15.policy - This is a policy file which works with 10.14 and 10.15, granting the deregisterDriver privilege to the engine. * driverUnloadingTest_withoutPermission_10_15.policy - This is the same policy but missing the deregisterDriver grant. The test verifies that 10.14 and 10.15 handle graceful shutdown the same way: * Without the deregisterDriver privilege, the engine driver can't be unloaded. * With the deregisterDriver privilege, the engine driver successfully unloads. The test demonstrates something else which is odd, but which has NOT changed between 10.14 and 10.15: When the deregisterDriver privilege is NOT granted and the Derby engine shuts down gracefully, the following recommended command does make it possible to reboot Derby. However, afterward you can see that there are two instances of the AutoloadedDriver registered: {noformat} Class.forName("org.apache.derby.jdbc.EmbeddedDriver").newInstance(); {noformat} I don't understand the implications of this leak. To summarize: * The deregisterDriver behavior seems to be the same on 10.14 and 10.15. * But the behavior of the upgrade test has changed in a way which I don't understand and which therefore troubles me. However, this change does not affect the behaviors which upgrade is explicitly testing. > Errors running upgrade tests from 10.15.1.0 release candidate to 10.16 trunk > ---------------------------------------------------------------------------- > > Key: DERBY-7031 > URL: https://issues.apache.org/jira/browse/DERBY-7031 > Project: Derby > Issue Type: Bug > Components: Test > Affects Versions: 10.16.0.0 > Reporter: Rick Hillegas > Priority: Major > Attachments: DriverUnloadingTest.java, > driverUnloadingTest_withPermission_10_15.policy, > driverUnloadingTest_withoutPermission_10_15.policy > > > I saw the following errors on the 10.16 trunk when running the upgrade tests > starting from 10.15.1.0: > {noformat} > There were 6 failures: > 1) 10.15.1.0 Upgrade Phase: POST UPGRADE > junit.framework.AssertionFailedError: Unexpected result from driver unloading > expected:<false> but was:<true> > at > org.apache.derbyTesting.functionTests.tests.upgradeTests.PhaseChanger.deregisterDriver(PhaseChanger.java:196) > at > org.apache.derbyTesting.functionTests.tests.upgradeTests.PhaseChanger.tearDown(PhaseChanger.java:147) > at junit.extensions.TestSetup$1.protect(TestSetup.java:22) > at junit.extensions.TestSetup.run(TestSetup.java:25) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) > 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) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) > 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) > 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) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) > 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) > 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) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) > 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) > 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) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) > 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) > 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) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) > 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) > 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) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) > 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) > 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) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) > 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) > 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) > 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) > 2) Upgrade Tests from 10.15.1.0junit.framework.ComparisonFailure: Database > shutdown expected:<[08006]> but was:<[XJ004]> > at > org.apache.derbyTesting.junit.BaseJDBCTestCase.assertSQLState(BaseJDBCTestCase.java:879) > at > org.apache.derbyTesting.junit.JDBCDataSource.shutdownDatabase(JDBCDataSource.java:277) > at > org.apache.derbyTesting.junit.DropDatabaseSetup.shutdownDatabase(DropDatabaseSetup.java:89) > at > org.apache.derbyTesting.junit.DropDatabaseSetup.tearDown(DropDatabaseSetup.java:54) > at junit.extensions.TestSetup$1.protect(TestSetup.java:22) > at junit.extensions.TestSetup.run(TestSetup.java:25) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) > 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) > 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) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) > 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) > 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) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) > 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) > 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) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) > 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) > 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) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) > 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) > 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) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) > 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) > 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) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) > 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) > 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) > 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: Database 'singleUse/oneuse0' not found. > at > org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:115) > at > org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:141) > at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Util.java:225) > at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Util.java:220) > at > org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(EmbedConnection.java:3215) > at > org.apache.derby.impl.jdbc.EmbedConnection.handleDBNotFound(EmbedConnection.java:772) > at > org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:442) > at > org.apache.derby.iapi.jdbc.InternalDriver$1.run(InternalDriver.java:660) > at > org.apache.derby.iapi.jdbc.InternalDriver$1.run(InternalDriver.java:656) > at java.base/java.security.AccessController.doPrivileged(Native Method) > at > org.apache.derby.iapi.jdbc.InternalDriver.getNewEmbedConnection(InternalDriver.java:654) > at > org.apache.derby.iapi.jdbc.InternalDriver.connect(InternalDriver.java:300) > at > org.apache.derby.jdbc.BasicEmbeddedDataSource40.getConnection(BasicEmbeddedDataSource40.java:778) > at > org.apache.derby.jdbc.BasicEmbeddedDataSource40.getConnection(BasicEmbeddedDataSource40.java:708) > at > org.apache.derbyTesting.junit.JDBCDataSource.shutdownDatabase(JDBCDataSource.java:274) > ... 77 more > Caused by: ERROR XJ004: Database 'singleUse/oneuse0' not found. > at > org.apache.derby.shared.common.error.StandardException.newException(StandardException.java:300) > at > org.apache.derby.impl.jdbc.SQLExceptionFactory.wrapArgsForTransportAcrossDRDA(SQLExceptionFactory.java:170) > at > org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:75) > ... 91 more > 3) Upgrade Tests from 10.15.1.0junit.framework.ComparisonFailure: Database > shutdown expected:<[08006]> but was:<[XJ004]> > at > org.apache.derbyTesting.junit.BaseJDBCTestCase.assertSQLState(BaseJDBCTestCase.java:879) > at > org.apache.derbyTesting.junit.JDBCDataSource.shutdownDatabase(JDBCDataSource.java:277) > at > org.apache.derbyTesting.junit.DropDatabaseSetup.shutdownDatabase(DropDatabaseSetup.java:89) > at > org.apache.derbyTesting.junit.DropDatabaseSetup.tearDown(DropDatabaseSetup.java:54) > at junit.extensions.TestSetup$1.protect(TestSetup.java:22) > at junit.extensions.TestSetup.run(TestSetup.java:25) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) > 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) > 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) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) > 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) > 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) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) > 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) > 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) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) > 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) > 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) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) > 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) > 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) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) > 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) > 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) > 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: Database 'singleUse/oneuse1' not found. > at > org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:115) > at > org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:141) > at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Util.java:225) > at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Util.java:220) > at > org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(EmbedConnection.java:3215) > at > org.apache.derby.impl.jdbc.EmbedConnection.handleDBNotFound(EmbedConnection.java:772) > at > org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:442) > at > org.apache.derby.iapi.jdbc.InternalDriver$1.run(InternalDriver.java:660) > at > org.apache.derby.iapi.jdbc.InternalDriver$1.run(InternalDriver.java:656) > at java.base/java.security.AccessController.doPrivileged(Native Method) > at > org.apache.derby.iapi.jdbc.InternalDriver.getNewEmbedConnection(InternalDriver.java:654) > at > org.apache.derby.iapi.jdbc.InternalDriver.connect(InternalDriver.java:300) > at > org.apache.derby.jdbc.BasicEmbeddedDataSource40.getConnection(BasicEmbeddedDataSource40.java:778) > at > org.apache.derby.jdbc.BasicEmbeddedDataSource40.getConnection(BasicEmbeddedDataSource40.java:708) > at > org.apache.derbyTesting.junit.JDBCDataSource.shutdownDatabase(JDBCDataSource.java:274) > ... 68 more > Caused by: ERROR XJ004: Database 'singleUse/oneuse1' not found. > at > org.apache.derby.shared.common.error.StandardException.newException(StandardException.java:300) > at > org.apache.derby.impl.jdbc.SQLExceptionFactory.wrapArgsForTransportAcrossDRDA(SQLExceptionFactory.java:170) > at > org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:75) > ... 82 more > 4) Upgrade Tests from 10.15.1.0junit.framework.ComparisonFailure: Database > shutdown expected:<[08006]> but was:<[XJ004]> > at > org.apache.derbyTesting.junit.BaseJDBCTestCase.assertSQLState(BaseJDBCTestCase.java:879) > at > org.apache.derbyTesting.junit.JDBCDataSource.shutdownDatabase(JDBCDataSource.java:277) > at > org.apache.derbyTesting.junit.DropDatabaseSetup.shutdownDatabase(DropDatabaseSetup.java:89) > at > org.apache.derbyTesting.junit.DropDatabaseSetup.tearDown(DropDatabaseSetup.java:54) > at junit.extensions.TestSetup$1.protect(TestSetup.java:22) > at junit.extensions.TestSetup.run(TestSetup.java:25) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) > 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) > 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) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) > 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) > 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) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) > 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) > 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) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) > 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) > 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) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) > 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) > 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) > 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: Database 'singleUse/oneuse2' not found. > at > org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:115) > at > org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:141) > at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Util.java:225) > at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Util.java:220) > at > org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(EmbedConnection.java:3215) > at > org.apache.derby.impl.jdbc.EmbedConnection.handleDBNotFound(EmbedConnection.java:772) > at > org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:442) > at > org.apache.derby.iapi.jdbc.InternalDriver$1.run(InternalDriver.java:660) > at > org.apache.derby.iapi.jdbc.InternalDriver$1.run(InternalDriver.java:656) > at java.base/java.security.AccessController.doPrivileged(Native Method) > at > org.apache.derby.iapi.jdbc.InternalDriver.getNewEmbedConnection(InternalDriver.java:654) > at > org.apache.derby.iapi.jdbc.InternalDriver.connect(InternalDriver.java:300) > at > org.apache.derby.jdbc.BasicEmbeddedDataSource40.getConnection(BasicEmbeddedDataSource40.java:778) > at > org.apache.derby.jdbc.BasicEmbeddedDataSource40.getConnection(BasicEmbeddedDataSource40.java:708) > at > org.apache.derbyTesting.junit.JDBCDataSource.shutdownDatabase(JDBCDataSource.java:274) > ... 59 more > Caused by: ERROR XJ004: Database 'singleUse/oneuse2' not found. > at > org.apache.derby.shared.common.error.StandardException.newException(StandardException.java:300) > at > org.apache.derby.impl.jdbc.SQLExceptionFactory.wrapArgsForTransportAcrossDRDA(SQLExceptionFactory.java:170) > at > org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:75) > ... 73 more > 5) Upgrade Tests from 10.15.1.0junit.framework.ComparisonFailure: Database > shutdown expected:<[08006]> but was:<[XJ004]> > at > org.apache.derbyTesting.junit.BaseJDBCTestCase.assertSQLState(BaseJDBCTestCase.java:879) > at > org.apache.derbyTesting.junit.JDBCDataSource.shutdownDatabase(JDBCDataSource.java:277) > at > org.apache.derbyTesting.junit.DropDatabaseSetup.shutdownDatabase(DropDatabaseSetup.java:89) > at > org.apache.derbyTesting.junit.DropDatabaseSetup.tearDown(DropDatabaseSetup.java:54) > at junit.extensions.TestSetup$1.protect(TestSetup.java:22) > at junit.extensions.TestSetup.run(TestSetup.java:25) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) > 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) > 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) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) > 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) > 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) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) > 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) > 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) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) > 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) > 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) > 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: Database 'singleUse/oneuse3' not found. > at > org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:115) > at > org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:141) > at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Util.java:225) > at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Util.java:220) > at > org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(EmbedConnection.java:3215) > at > org.apache.derby.impl.jdbc.EmbedConnection.handleDBNotFound(EmbedConnection.java:772) > at > org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:442) > at > org.apache.derby.iapi.jdbc.InternalDriver$1.run(InternalDriver.java:660) > at > org.apache.derby.iapi.jdbc.InternalDriver$1.run(InternalDriver.java:656) > at java.base/java.security.AccessController.doPrivileged(Native Method) > at > org.apache.derby.iapi.jdbc.InternalDriver.getNewEmbedConnection(InternalDriver.java:654) > at > org.apache.derby.iapi.jdbc.InternalDriver.connect(InternalDriver.java:300) > at > org.apache.derby.jdbc.BasicEmbeddedDataSource40.getConnection(BasicEmbeddedDataSource40.java:778) > at > org.apache.derby.jdbc.BasicEmbeddedDataSource40.getConnection(BasicEmbeddedDataSource40.java:708) > at > org.apache.derbyTesting.junit.JDBCDataSource.shutdownDatabase(JDBCDataSource.java:274) > ... 50 more > Caused by: ERROR XJ004: Database 'singleUse/oneuse3' not found. > at > org.apache.derby.shared.common.error.StandardException.newException(StandardException.java:300) > at > org.apache.derby.impl.jdbc.SQLExceptionFactory.wrapArgsForTransportAcrossDRDA(SQLExceptionFactory.java:170) > at > org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:75) > ... 64 more > 6) Upgrade Tests from 10.15.1.0junit.framework.ComparisonFailure: Database > shutdown expected:<[08006]> but was:<[XJ004]> > at > org.apache.derbyTesting.junit.BaseJDBCTestCase.assertSQLState(BaseJDBCTestCase.java:879) > at > org.apache.derbyTesting.junit.JDBCDataSource.shutdownDatabase(JDBCDataSource.java:277) > at > org.apache.derbyTesting.junit.DropDatabaseSetup.shutdownDatabase(DropDatabaseSetup.java:89) > at > org.apache.derbyTesting.junit.DropDatabaseSetup.tearDown(DropDatabaseSetup.java:54) > at junit.extensions.TestSetup$1.protect(TestSetup.java:22) > at junit.extensions.TestSetup.run(TestSetup.java:25) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) > 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) > 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) > 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: Database 'singleUse/oneuse6' not found. > at > org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:115) > at > org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:141) > at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Util.java:225) > at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Util.java:220) > at > org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(EmbedConnection.java:3215) > at > org.apache.derby.impl.jdbc.EmbedConnection.handleDBNotFound(EmbedConnection.java:772) > at > org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:442) > at > org.apache.derby.iapi.jdbc.InternalDriver$1.run(InternalDriver.java:660) > at > org.apache.derby.iapi.jdbc.InternalDriver$1.run(InternalDriver.java:656) > at java.base/java.security.AccessController.doPrivileged(Native Method) > at > org.apache.derby.iapi.jdbc.InternalDriver.getNewEmbedConnection(InternalDriver.java:654) > at > org.apache.derby.iapi.jdbc.InternalDriver.connect(InternalDriver.java:300) > at > org.apache.derby.jdbc.BasicEmbeddedDataSource40.getConnection(BasicEmbeddedDataSource40.java:778) > at > org.apache.derby.jdbc.BasicEmbeddedDataSource40.getConnection(BasicEmbeddedDataSource40.java:708) > at > org.apache.derbyTesting.junit.JDBCDataSource.shutdownDatabase(JDBCDataSource.java:274) > ... 23 more > Caused by: ERROR XJ004: Database 'singleUse/oneuse6' not found. > at > org.apache.derby.shared.common.error.StandardException.newException(StandardException.java:300) > at > org.apache.derby.impl.jdbc.SQLExceptionFactory.wrapArgsForTransportAcrossDRDA(SQLExceptionFactory.java:170) > at > org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:75) > ... 37 more > FAILURES!!! > Tests run: 145, Failures: 6, Errors: 0 > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)