db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r452832 - in /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi: LobStreamsTest.java SURQueryMixTest.java SURTest.java UpdatableResultSetTest.java
Date Wed, 04 Oct 2006 11:02:21 GMT
Author: kahatlen
Date: Wed Oct  4 04:02:21 2006
New Revision: 452832

URL: http://svn.apache.org/viewvc?view=rev&rev=452832
Log:
DERBY-1910: OutOfMemoryError happens when jdbcapi/_Suite.junit was
executed as DerbyNetClient (in jvm1.4.2)

The problem was being caused by some of the tests that kept a
reference to a connection object which prevented this object from
being garbage collected. The attached patch (derby-1910.diff) fixes
that problem.

Patch contributed by Fernanda Pizzorno.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/LobStreamsTest.java
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/SURQueryMixTest.java
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/SURTest.java
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/UpdatableResultSetTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/LobStreamsTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/LobStreamsTest.java?view=diff&rev=452832&r1=452831&r2=452832
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/LobStreamsTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/LobStreamsTest.java
Wed Oct  4 04:02:21 2006
@@ -86,6 +86,11 @@
         stmt2.close();
     }
 
+    protected void tearDown() throws Exception {
+        super.tearDown();
+        con = null;
+    }
+
     /**
      * Tests the BlobOutputStream.write(byte  b[], int off, int len) method
      **/

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/SURQueryMixTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/SURQueryMixTest.java?view=diff&rev=452832&r1=452831&r2=452832
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/SURQueryMixTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/SURQueryMixTest.java
Wed Oct  4 04:02:21 2006
@@ -558,6 +558,11 @@
         }
         return mainSuite;
     }
+
+    protected void tearDown() throws Exception {
+        super.tearDown();
+        con = null;
+    }
     
   
 }

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/SURTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/SURTest.java?view=diff&rev=452832&r1=452831&r2=452832
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/SURTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/SURTest.java
Wed Oct  4 04:02:21 2006
@@ -1605,4 +1605,9 @@
         
         return mainSuite;
     }
+
+    protected void tearDown() throws Exception {
+        super.tearDown();
+        con = null;
+    }
 }

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/UpdatableResultSetTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/UpdatableResultSetTest.java?view=diff&rev=452832&r1=452831&r2=452832
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/UpdatableResultSetTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/UpdatableResultSetTest.java
Wed Oct  4 04:02:21 2006
@@ -72,9 +72,11 @@
         stmt.close();
     }
 
-    protected void tearDown() throws SQLException {
+    protected void tearDown() throws Exception {
         conn.rollback();
         conn.close();
+        super.tearDown();
+        conn = null;
     }
     
     /** Create a test suite with all tests in this class. */



Mime
View raw message