db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1301109 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/largedata/LobLimitsClientTest.java
Date Thu, 15 Mar 2012 17:32:46 GMT
Author: mamta
Date: Thu Mar 15 17:32:45 2012
New Revision: 1301109

URL: http://svn.apache.org/viewvc?rev=1301109&view=rev
DERBY-5638 intermittent test failure in test_05_ClobNegative when running full largedata._Suite;
LobLimitsTestjava.sql.SQLException: Table/View 'BLOBTBL' already exists in Schema 'APP'.

The issue has been that the CleanDatabaseTestSetup, after the last test fixture of embedded
suite is done, tries to drop the tables but runs into lock timeout errors and hence it never
finishes dropping the tables. None of these errors get reported anywhere by CleanDatabaseTestSetup
and we simply move on to the next suite which in our case is network server running the large
data tests. As part of CleanDatabaseTestSetup decorator for network server, we try to drop
the existing objects in the database again before creating the new objects required by the
new suite and the drop tables again run into lock timeouts. Now when the CleanDatabaseTestSetup
creates the objects needed by network server suite, it runs into object already exists error.

This commit will use singleUseDatabaseDecorator for the network server suite run of large
data suite so a brand new database will be created and that way it will not run into left
over database objects from the embedded run of large data tests. 


Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/largedata/LobLimitsClientTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/largedata/LobLimitsClientTest.java?rev=1301109&r1=1301108&r2=1301109&view=diff
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/largedata/LobLimitsClientTest.java
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/largedata/LobLimitsClientTest.java
Thu Mar 15 17:32:45 2012
@@ -37,6 +37,7 @@ public class LobLimitsClientTest extends
     public static Test suite() {
-        return TestConfiguration.clientServerDecorator(LobLimitsTest.suite());
+        return TestConfiguration.singleUseDatabaseDecorator(
+        TestConfiguration.clientServerDecorator(LobLimitsTest.suite()));

View raw message