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-2405 use a simpler loop
Date Thu, 27 Feb 2014 17:14:42 GMT
Repository: accumulo
Updated Branches:
  refs/heads/1.6.0-SNAPSHOT c530f389c -> eab028a48


ACCUMULO-2405 use a simpler loop


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

Branch: refs/heads/1.6.0-SNAPSHOT
Commit: 948216cbf54df5caf119b5e4c84cfdc114da3507
Parents: c530f38
Author: Eric Newton <eric.newton@gmail.com>
Authored: Thu Feb 27 11:37:57 2014 -0500
Committer: Eric Newton <eric.newton@gmail.com>
Committed: Thu Feb 27 11:37:57 2014 -0500

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


http://git-wip-us.apache.org/repos/asf/accumulo/blob/948216cb/test/src/test/java/org/apache/accumulo/test/functional/MetadataIT.java
----------------------------------------------------------------------
diff --git a/test/src/test/java/org/apache/accumulo/test/functional/MetadataIT.java b/test/src/test/java/org/apache/accumulo/test/functional/MetadataIT.java
index 3df7381..c4e33e4 100644
--- a/test/src/test/java/org/apache/accumulo/test/functional/MetadataIT.java
+++ b/test/src/test/java/org/apache/accumulo/test/functional/MetadataIT.java
@@ -92,11 +92,9 @@ public class MetadataIT extends SimpleMacIT {
       c.tableOperations().create(tableName);
     }
     c.tableOperations().merge(MetadataTable.NAME, null, null);
-    while (true) {
-      Scanner s = c.createScanner(RootTable.NAME, Authorizations.EMPTY);
-      s.setRange(MetadataSchema.DeletesSection.getRange());
-      if (FunctionalTestUtils.count(s) > 0)
-        break;
+    Scanner s = c.createScanner(RootTable.NAME, Authorizations.EMPTY);
+    s.setRange(MetadataSchema.DeletesSection.getRange());
+    while (FunctionalTestUtils.count(s) == 0) {
       UtilWaitThread.sleep(100);
     }
     assertEquals(0, c.tableOperations().listSplits(MetadataTable.NAME).size());


Mime
View raw message