flume-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arv...@apache.org
Subject svn commit: r1243412 - /incubator/flume/branches/flume-728/flume-ng-core/src/test/java/org/apache/flume/sink/TestAvroSink.java
Date Mon, 13 Feb 2012 04:17:28 GMT
Author: arvind
Date: Mon Feb 13 04:17:28 2012
New Revision: 1243412

URL: http://svn.apache.org/viewvc?rev=1243412&view=rev
Log:
FLUME-960. TestAvroSink.testFailedConnect is racy and fails often.

(Brock Noland via Arvind Prabhakar)

Modified:
    incubator/flume/branches/flume-728/flume-ng-core/src/test/java/org/apache/flume/sink/TestAvroSink.java

Modified: incubator/flume/branches/flume-728/flume-ng-core/src/test/java/org/apache/flume/sink/TestAvroSink.java
URL: http://svn.apache.org/viewvc/incubator/flume/branches/flume-728/flume-ng-core/src/test/java/org/apache/flume/sink/TestAvroSink.java?rev=1243412&r1=1243411&r2=1243412&view=diff
==============================================================================
--- incubator/flume/branches/flume-728/flume-ng-core/src/test/java/org/apache/flume/sink/TestAvroSink.java
(original)
+++ incubator/flume/branches/flume-728/flume-ng-core/src/test/java/org/apache/flume/sink/TestAvroSink.java
Mon Feb 13 04:17:28 2012
@@ -139,7 +139,9 @@ public class TestAvroSink {
     Assert.assertTrue(LifecycleController.waitForOneOf(sink,
         LifecycleState.START_OR_ERROR, 5000));
 
+    Thread.sleep(500L); // let socket startup
     server.close();
+    Thread.sleep(500L); // sleep a little to allow close occur
 
     Transaction transaction = channel.getTransaction();
 



Mime
View raw message