avro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbaldass...@apache.org
Subject svn commit: r1232442 - in /avro/trunk: CHANGES.txt lang/java/ipc/src/test/java/org/apache/avro/ipc/trace/TestFileSpanStorage.java
Date Tue, 17 Jan 2012 15:27:18 GMT
Author: jbaldassari
Date: Tue Jan 17 15:27:18 2012
New Revision: 1232442

URL: http://svn.apache.org/viewvc?rev=1232442&view=rev
Log:
AVRO-994. Java: TestFileSpanStorage.testTonsOfSpans() fails on my slow VM.


Modified:
    avro/trunk/CHANGES.txt
    avro/trunk/lang/java/ipc/src/test/java/org/apache/avro/ipc/trace/TestFileSpanStorage.java

Modified: avro/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/avro/trunk/CHANGES.txt?rev=1232442&r1=1232441&r2=1232442&view=diff
==============================================================================
--- avro/trunk/CHANGES.txt (original)
+++ avro/trunk/CHANGES.txt Tue Jan 17 15:27:18 2012
@@ -61,6 +61,9 @@ Avro 1.6.2 (unreleased)
     AVRO-984. C: Resolved readers initialize complex array values
     correctly. (Vivek Nadkarni via dcreager)
 
+    AVRO-994. Java: TestFileSpanStorage.testTonsOfSpans() fails on my 
+    slow VM.
+
 Avro 1.6.1 (8 November 2011)
 
   INCOMPATIBLE CHANGES

Modified: avro/trunk/lang/java/ipc/src/test/java/org/apache/avro/ipc/trace/TestFileSpanStorage.java
URL: http://svn.apache.org/viewvc/avro/trunk/lang/java/ipc/src/test/java/org/apache/avro/ipc/trace/TestFileSpanStorage.java?rev=1232442&r1=1232441&r2=1232442&view=diff
==============================================================================
--- avro/trunk/lang/java/ipc/src/test/java/org/apache/avro/ipc/trace/TestFileSpanStorage.java
(original)
+++ avro/trunk/lang/java/ipc/src/test/java/org/apache/avro/ipc/trace/TestFileSpanStorage.java
Tue Jan 17 15:27:18 2012
@@ -62,8 +62,12 @@ public class TestFileSpanStorage {
       test.addSpan(s);
       spans.add(s);
     }
+    
+    // Try up to 10 times to get the expected number of spans
     try {
-      Thread.sleep(2000);
+      for (int retries = 0; (retries < 10) && (test.getAllSpans().size() <
50000); retries++ ) {
+        Thread.sleep(1000);
+      }
     } catch (InterruptedException e) {
       e.printStackTrace();
     }



Mime
View raw message