db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mi...@apache.org
Subject svn commit: r1233098 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/AccessTest.java
Date Wed, 18 Jan 2012 22:37:17 GMT
Author: mikem
Date: Wed Jan 18 22:37:16 2012
New Revision: 1233098

URL: http://svn.apache.org/viewvc?rev=1233098&view=rev
Log:
DERBY-4540 AssertionFailedError in store.AccessTest.testCS4595B_UniqueIndex(AccessTest.java:1729)'
on SUSE Linux / IBM JIT - r9

This change just adds some diagnostic print out to the assert that seems
to be intermittently failing.  Next time we should see the number of pages
expected and the full dump of the statistics output the test is getting when
it gets this failure.


Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/AccessTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/AccessTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/AccessTest.java?rev=1233098&r1=1233097&r2=1233098&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/AccessTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/AccessTest.java
Wed Jan 18 22:37:16 2012
@@ -400,7 +400,14 @@ public final class AccessTest extends Ba
             assertTrue(rtsp.findString("Number of columns fetched="+expNumCols, 1));
             if (expDelRowsV!=null)
                 assertTrue(rtsp.findString("Number of deleted rows visited="+expDelRowsV,
1));
-            assertTrue(rtsp.findString("Number of pages visited="+expPages, 1));
+
+
+            assertTrue(
+                "RuntimeStatisticsParser.findstring(Number of pages visited= "
+                    + expPages + ") returned false" +
+                "full runtime statistics = " + rtsp.toString(),
+                rtsp.findString("Number of pages visited=" + expPages, 1));
+
             assertTrue(rtsp.findString("Number of rows qualified="+expRowsQ, 1));       
    
             assertTrue(rtsp.findString("Number of rows visited="+expRowsV, 1));
             assertTrue(rtsp.findString("Scan type="+expScanType, 1));
@@ -1893,4 +1900,4 @@ public final class AccessTest extends Ba
         rollback();
         st.close();
     }
-}
\ No newline at end of file
+}



Mime
View raw message