db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mi...@apache.org
Subject svn commit: r1292432 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/largedata/Derby5624Test.java
Date Wed, 22 Feb 2012 18:20:31 GMT
Author: mikem
Date: Wed Feb 22 18:20:30 2012
New Revision: 1292432

URL: http://svn.apache.org/viewvc?rev=1292432&view=rev
DERBY-5624 System can run out of stack space while processing DropOnCommit requests.

minor comment changes.


Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/largedata/Derby5624Test.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/largedata/Derby5624Test.java?rev=1292432&r1=1292431&r2=1292432&view=diff
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/largedata/Derby5624Test.java
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/largedata/Derby5624Test.java
Wed Feb 22 18:20:30 2012
@@ -43,7 +43,16 @@ limitations under the License.
-Test to reproduce DERBY-5624, An expanding update fails with an nospc.U error.
+Test to reproduce DERBY-5624, a recursion during DropOnCommit causes out
+of stack space for operations that generate a lot of objects to be dropped
+at commit time. 
+This test reproduces the problem by creating a table with 1000 columns, then
+an index on each of those columns, loads some data and then call compress
+will drop and recreate each of those indexes.  At commit time each index
+drop will have registered itself onto the Observer list for processing at
+commit time.  Before fix this would fail with out of disk space in at least
+XP, ibm16 default jvm configuration.
@@ -119,7 +128,8 @@ public class Derby5624Test extends BaseJ
-        // verify access to table
+        // verify access to table after the commit, previous to fix the
+        // commit would fail with an out of memory or out of stack space error.
                 "select col1, col2 from TESTBIGTABLE where col1 = 10").executeQuery(),

View raw message