accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [1/3] accumulo git commit: ACCUMULO-3355 Broke this IT in the process. Need to check a few times to give the tracer time to write to the table.
Date Fri, 21 Nov 2014 21:43:22 GMT
Repository: accumulo
Updated Branches:
  refs/heads/1.6 07e5e66c4 -> c5197aaf4
  refs/heads/master 6166406f9 -> 2ab616a64


ACCUMULO-3355 Broke this IT in the process. Need to check a few times to give the tracer time
to write to the table.


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

Branch: refs/heads/1.6
Commit: c5197aaf4dee8c4e6e05f446fa940c75cc923d43
Parents: 07e5e66
Author: Josh Elser <elserj@apache.org>
Authored: Fri Nov 21 16:42:29 2014 -0500
Committer: Josh Elser <elserj@apache.org>
Committed: Fri Nov 21 16:42:29 2014 -0500

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


http://git-wip-us.apache.org/repos/asf/accumulo/blob/c5197aaf/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 8406570..8570858 100644
--- a/test/src/test/java/org/apache/accumulo/test/ConditionalWriterIT.java
+++ b/test/src/test/java/org/apache/accumulo/test/ConditionalWriterIT.java
@@ -1247,6 +1247,7 @@ public class ConditionalWriterIT extends SimpleMacIT {
 
     final Scanner scanner = conn.createScanner("trace", Authorizations.EMPTY);
     scanner.setRange(new Range(new Text(Long.toHexString(root.traceId()))));
+    loop:
     while (true) {
       final StringBuffer finalBuffer = new StringBuffer();
       int traceCount = TraceDump.printTrace(scanner, new Printer() {
@@ -1267,6 +1268,11 @@ public class ConditionalWriterIT extends SimpleMacIT {
         {
           log.info("Looking in trace output for '" + part + "'");
           int pos = traceOutput.indexOf(part);
+          if (-1 == pos) {
+            log.info("Trace output doesn't contain '" + part + "'");
+            Thread.sleep(1000);
+            break loop;
+          }
           assertTrue("Did not find '" + part + "' in output", pos > 0);
           assertTrue("'" + part + "' occurred earlier than the previous element unexpectedly",
pos > lastPos);
           lastPos = pos;


Mime
View raw message