accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject [1/2] git commit: ACCUMULO-3115 add a better error message for the timing test
Date Mon, 15 Sep 2014 17:48:06 GMT
Repository: accumulo
Updated Branches:
  refs/heads/master 4176ad380 -> 83ed12ae3


ACCUMULO-3115 add a better error message for the timing test


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/dbd7c178
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/dbd7c178
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/dbd7c178

Branch: refs/heads/master
Commit: dbd7c17818af1df855c377d5beb50027c9762f22
Parents: 4176ad3
Author: Eric C. Newton <eric.newton@gmail.com>
Authored: Mon Sep 15 13:37:51 2014 -0400
Committer: Eric C. Newton <eric.newton@gmail.com>
Committed: Mon Sep 15 13:38:22 2014 -0400

----------------------------------------------------------------------
 .../java/org/apache/accumulo/test/functional/DurabilityIT.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/dbd7c178/test/src/test/java/org/apache/accumulo/test/functional/DurabilityIT.java
----------------------------------------------------------------------
diff --git a/test/src/test/java/org/apache/accumulo/test/functional/DurabilityIT.java b/test/src/test/java/org/apache/accumulo/test/functional/DurabilityIT.java
index 4632083..9c68f5f 100644
--- a/test/src/test/java/org/apache/accumulo/test/functional/DurabilityIT.java
+++ b/test/src/test/java/org/apache/accumulo/test/functional/DurabilityIT.java
@@ -86,9 +86,9 @@ public class DurabilityIT extends ConfigurableMacIT {
     long t2 = writeSome(tableNames[2], N); tableOps.delete(tableNames[2]);
     long t3 = writeSome(tableNames[3], N); tableOps.delete(tableNames[3]);
     System.out.println(String.format("sync %d flush %d log %d none %d", t0, t1, t2, t3));
-    assertTrue(t0 > t1);
-    assertTrue(t1 > t2);
-    assertTrue(t2 > t3);
+    assertTrue("flush-only should be faster than sync",   t0 > t1);
+    assertTrue("sync should be faster than log",          t1 > t2);
+    assertTrue("no durability should be faster than log", t2 > t3);
   }
 
   @Test(timeout = 4 * 60 * 1000)


Mime
View raw message