db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1058340 - /db/derby/code/branches/10.4/java/testing/org/apache/derbyTesting/functionTests/tests/memory/TriggerTests.java
Date Wed, 12 Jan 2011 22:21:29 GMT
Author: kahatlen
Date: Wed Jan 12 22:21:29 2011
New Revision: 1058340

URL: http://svn.apache.org/viewvc?rev=1058340&view=rev
Log:
Added property to make TriggerTests dump the full lock table in case
of a lock timeout. For debugging a test failure seen after DERBY-4874.

Modified:
    db/derby/code/branches/10.4/java/testing/org/apache/derbyTesting/functionTests/tests/memory/TriggerTests.java

Modified: db/derby/code/branches/10.4/java/testing/org/apache/derbyTesting/functionTests/tests/memory/TriggerTests.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.4/java/testing/org/apache/derbyTesting/functionTests/tests/memory/TriggerTests.java?rev=1058340&r1=1058339&r2=1058340&view=diff
==============================================================================
--- db/derby/code/branches/10.4/java/testing/org/apache/derbyTesting/functionTests/tests/memory/TriggerTests.java
(original)
+++ db/derby/code/branches/10.4/java/testing/org/apache/derbyTesting/functionTests/tests/memory/TriggerTests.java
Wed Jan 12 22:21:29 2011
@@ -13,6 +13,7 @@ import junit.framework.Test;
 import org.apache.derbyTesting.functionTests.util.streams.LoopingAlphabetStream;
 import org.apache.derbyTesting.junit.BaseJDBCTestCase;
 import org.apache.derbyTesting.junit.CleanDatabaseTestSetup;
+import org.apache.derbyTesting.junit.DatabasePropertyTestSetup;
 import org.apache.derbyTesting.junit.SystemPropertyTestSetup;
 import org.apache.derbyTesting.junit.TestConfiguration;
 
@@ -229,6 +230,12 @@ public class TriggerTests extends BaseJD
     public static Test suite() {
         Test suite = new CleanDatabaseTestSetup(TestConfiguration
                 .embeddedSuite(TriggerTests.class));
+
+        // Dump lock table on lock timeout to debug failure seen
+        // in Tinderbox after DERBY-4874.
+        suite = DatabasePropertyTestSetup.singleProperty(
+                    suite, "derby.locks.deadlockTrace", "true");
+
         Properties p = new Properties();
         // use small pageCacheSize so we don't run out of memory on the insert.
         p.setProperty("derby.storage.pageCacheSize", "100");



Mime
View raw message