You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by el...@apache.org on 2014/11/21 22:43:23 UTC
[2/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.
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/master
Commit: c5197aaf4dee8c4e6e05f446fa940c75cc923d43
Parents: 07e5e66
Author: Josh Elser <el...@apache.org>
Authored: Fri Nov 21 16:42:29 2014 -0500
Committer: Josh Elser <el...@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;