FLUME-1788: Flume Thrift source can fail intermittently because of a race condition in Thrift server implementation on some Linux systems
(Venkat Ranganathan via Brock Noland) Project: http://git-wip-us.apache.org/repos/asf/flume/repo Commit: http://git-wip-us.apache.org/repos/asf/flume/commit/26f4af0a Tree: http://git-wip-us.apache.org/repos/asf/flume/tree/26f4af0a Diff: http://git-wip-us.apache.org/repos/asf/flume/diff/26f4af0a Branch: refs/heads/flume-1.3.0 Commit: 26f4af0a9812d928df15701a962a2969bfe8dbe3 Parents: 9e4eb91 Author: Brock Noland <[email protected]> Authored: Tue Dec 18 12:07:12 2012 -0600 Committer: Hari Shreedharan <[email protected]> Committed: Thu Dec 20 14:49:01 2012 -0800 ---------------------------------------------------------------------- .../thriftLegacy/TestThriftLegacySource.java | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flume/blob/26f4af0a/flume-ng-legacy-sources/flume-thrift-source/src/test/java/org/apache/flume/source/thriftLegacy/TestThriftLegacySource.java ---------------------------------------------------------------------- diff --git a/flume-ng-legacy-sources/flume-thrift-source/src/test/java/org/apache/flume/source/thriftLegacy/TestThriftLegacySource.java b/flume-ng-legacy-sources/flume-thrift-source/src/test/java/org/apache/flume/source/thriftLegacy/TestThriftLegacySource.java index d8a6872..8e08f22 100644 --- a/flume-ng-legacy-sources/flume-thrift-source/src/test/java/org/apache/flume/source/thriftLegacy/TestThriftLegacySource.java +++ b/flume-ng-legacy-sources/flume-thrift-source/src/test/java/org/apache/flume/source/thriftLegacy/TestThriftLegacySource.java @@ -145,6 +145,7 @@ public class TestThriftLegacySource { @Test public void testLifecycle() throws InterruptedException { bind(); + Thread.sleep(1000); stop(); }
