db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krist...@apache.org
Subject svn commit: r1071348 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/AutomaticIndexStatisticsTest.java
Date Wed, 16 Feb 2011 18:11:36 GMT
Author: kristwaa
Date: Wed Feb 16 18:11:36 2011
New Revision: 1071348

URL: http://svn.apache.org/viewvc?rev=1071348&view=rev
Log:
DERBY-5046: Intermittent assert failure in AutomaticIndexStatisticsTest.testStatisticsCorrectness

Relaxed assert on timestamps to allow identical timestamps, but still
disallows stats with a creation timestamp into the future.

Patch file: derby-5046-1a-relax_assert.diff

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

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/AutomaticIndexStatisticsTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/AutomaticIndexStatisticsTest.java?rev=1071348&r1=1071347&r2=1071348&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/AutomaticIndexStatisticsTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/AutomaticIndexStatisticsTest.java
Wed Feb 16 18:11:36 2011
@@ -342,7 +342,8 @@ public class AutomaticIndexStatisticsTes
             assertTrue("current stats created " + s.created +
                     ", previous stats created " + earlier,
                     s.created.after(earlier));
-            assertTrue(s.created.before(now));
+            // Stats cannot have been created after the current time (future).
+            assertFalse(s.created.compareTo(now) > 0);
             switch (s.lcols) {
                 case 1:
                     assertEquals(10, s.card);



Mime
View raw message