From 3190534814587a0e6cb7d99b01cca4480425458b Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Thu, 7 Jan 2016 14:51:34 +0000 Subject: [PATCH] HADOOP-12655. TestHttpServer.testBindAddress bind port range is wider than expected. (Wei-Chiu Chuang via stevel) --- hadoop-common-project/hadoop-common/CHANGES.txt | 4 +++- .../src/test/java/org/apache/hadoop/http/TestHttpServer.java | 3 --- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 258b4e0a01..a603cd9556 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -658,7 +658,9 @@ Release 2.9.0 - UNRELEASED HADOOP-12663. Remove Hard-Coded Values From FileSystem.java. (BELUGA BEHR via stevel) - + + HADOOP-12655. TestHttpServer.testBindAddress bind port range is wider + than expected. (Wei-Chiu Chuang via stevel) BUG FIXES diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/http/TestHttpServer.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/http/TestHttpServer.java index 5b202da0eb..4d2e1bfaeb 100644 --- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/http/TestHttpServer.java +++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/http/TestHttpServer.java @@ -534,9 +534,6 @@ private HttpServer2 checkBindAddress(String host, int port, boolean findPort) assertTrue(boundPort != 0); // ephemeral should now return bound port } else if (findPort) { assertTrue(boundPort > port); - // allow a little wiggle room to prevent random test failures if - // some consecutive ports are already in use - assertTrue(boundPort - port < 8); } } catch (Exception e) { server.stop();