ACCUMULO-1743 wait for the trace table to exist

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

Branch: refs/heads/master
Commit: a573f96d434fb5ef3016b8f7d3d9904e4fd88d65
Parents: 1873fc5
Author: Eric Newton <eric.new...@gmail.com>
Authored: Fri Jan 3 12:25:05 2014 -0500
Committer: Eric Newton <eric.new...@gmail.com>
Committed: Fri Jan 3 12:25:05 2014 -0500

----------------------------------------------------------------------
 .../test/java/org/apache/accumulo/test/ConditionalWriterIT.java | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/a573f96d/test/src/test/java/org/apache/accumulo/test/ConditionalWriterIT.java
----------------------------------------------------------------------
diff --git 
a/test/src/test/java/org/apache/accumulo/test/ConditionalWriterIT.java 
b/test/src/test/java/org/apache/accumulo/test/ConditionalWriterIT.java
index ea66b68..05a8961 100644
--- a/test/src/test/java/org/apache/accumulo/test/ConditionalWriterIT.java
+++ b/test/src/test/java/org/apache/accumulo/test/ConditionalWriterIT.java
@@ -1197,8 +1197,11 @@ public class ConditionalWriterIT extends SimpleMacIT {
 
     Process tracer = getStaticCluster().exec(TraceServer.class);
     Connector conn = getConnector();
+    while (!conn.tableOperations().exists("trace")) {
+      UtilWaitThread.sleep(1000);
+    }
+    
     String tableName = getTableNames(1)[0];
-
     conn.tableOperations().create(tableName);
     conn.tableOperations().deleteRows("trace", null, null);
 

Reply via email to