db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r544155 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/UpdatableResultSetTest.java
Date Mon, 04 Jun 2007 14:45:08 GMT
Author: kahatlen
Date: Mon Jun  4 07:45:07 2007
New Revision: 544155

URL: http://svn.apache.org/viewvc?view=rev&rev=544155
Log:
Reduced derby.locks.waitTimeout for UpdatableResultSetTest because one
of the test cases gets a lock timeout in an internal transaction
(compilation of a trigger statement). The hang is probably caused by
DERBY-177.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/UpdatableResultSetTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/UpdatableResultSetTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/UpdatableResultSetTest.java?view=diff&rev=544155&r1=544154&r2=544155
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/UpdatableResultSetTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/UpdatableResultSetTest.java
Mon Jun  4 07:45:07 2007
@@ -29,6 +29,7 @@
 
 import org.apache.derbyTesting.junit.BaseJDBCTestCase;
 import org.apache.derbyTesting.junit.CleanDatabaseTestSetup;
+import org.apache.derbyTesting.junit.DatabasePropertyTestSetup;
 import org.apache.derbyTesting.junit.JDBC;
 import org.apache.derbyTesting.junit.TestConfiguration;
 
@@ -290,8 +291,14 @@
         suite.addTest(new CleanDatabaseTestSetup(embeddedSuite));
         suite.addTest(TestConfiguration.clientServerDecorator(
                 new CleanDatabaseTestSetup(clientSuite)));
-        
-        return suite;
+
+        // DERBY-177: The internal transaction that tries to compile the
+        // trigger in testDeleteRowWithDeleteTrigger gets a lock timeout
+        // because the main transaction has an exclusive lock on the trigger
+        // statement. It does not fail, because the compilation is retried in
+        // the main transaction where it completes successfully. Reduce the
+        // lock timeout to make the test run faster until the bug is fixed.
+        return DatabasePropertyTestSetup.setLockTimeouts(suite, 2, 4);
     }
     
     private static TestSuite baseSuite(String name) {



Mime
View raw message