db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmars...@apache.org
Subject svn commit: r1149662 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/largedata/LobLimitsTest.java
Date Fri, 22 Jul 2011 17:22:36 GMT
Author: kmarsden
Date: Fri Jul 22 17:22:35 2011
New Revision: 1149662

URL: http://svn.apache.org/viewvc?rev=1149662&view=rev
Log:
DERBY-1903 convert LobLimits.java test to JUnit
Enable updateClob2 test for client and lite configuration. It is still 
disabled for embedded in LobLimitsTest because of 
DERBY-5344 updateClob2 test in LobLimitsTest gets OutOfMemoryError 

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/largedata/LobLimitsTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/largedata/LobLimitsTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/largedata/LobLimitsTest.java?rev=1149662&r1=1149661&r2=1149662&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/largedata/LobLimitsTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/largedata/LobLimitsTest.java
Fri Jul 22 17:22:35 2011
@@ -297,11 +297,15 @@ public class LobLimitsTest extends BaseJ
                    BIG_LOB_SZ, CHARDATAFILE);
         selectClob2("ClobTest #5.2 ", selectClob2, BIG_LOB_SZ, 0, 1,
                    CHARDATAFILE);
-
-        // Disabled for now, this will materialize, will open
-        // jira for it.
-        // updateClob2("ClobTest #8.1",selectClob,BIG_LOB_SZ,0,0,10,CHARDATAFILE);
-
+        // DERBY-5344 updateClob2 test in LobLimitsTest gets OutOfMemoryError 
+        // on updateRow with embedded
+        // Disabled for embedded for the big test for now, this will materialize.
+        // As part of DERBY-1903 / DERBY-5344, the test was enabled for 
+        // client. That issue will have reference to the materialization bug when 
+        // it is found or filed.
+        if (!(usingEmbedded()  && BIGGEST_LOB_SZ  == _2GB)) {
+            updateClob2("ClobTest #8.1",selectClob,BIG_LOB_SZ,0,0,10,CHARDATAFILE);
+        }
         // update the 2gb row in clobtbl with the 100mb data and compare if the
         // update
         // went ok.
@@ -1191,6 +1195,11 @@ public class LobLimitsTest extends BaseJ
         ResultSet rs2 = sel.executeQuery();
         rs2.next();
         Clob updatedValue = rs2.getClob(1);
+        assertEquals("FAIL - MISMATCH length of updated clob value ," +
+                "found=" + 
+                updatedValue.length() + ",expected = " + l,
+                l, updatedValue.length());
+        compareClobToFile(updatedValue.getCharacterStream(), file, (int) l);
 
         if (updatedValue.length() != l) {
             println("FAIL - MISMATCH length of updated clob value ," +



Mime
View raw message