Repository: hbase
Updated Branches:
  refs/heads/master 305ecaf22 -> 6b9d30d91


HBASE-14784 Port conflict is not resolved in 
HBaseTestingUtility.randomFreePort() (Youngjoon Kim)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/6b9d30d9
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/6b9d30d9
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/6b9d30d9

Branch: refs/heads/master
Commit: 6b9d30d9133ae011f6e76369efc1ee4c0a66465d
Parents: 305ecaf
Author: tedyu <[email protected]>
Authored: Sun Nov 8 08:50:41 2015 -0800
Committer: tedyu <[email protected]>
Committed: Sun Nov 8 08:50:41 2015 -0800

----------------------------------------------------------------------
 .../src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java  | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/6b9d30d9/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
----------------------------------------------------------------------
diff --git 
a/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java 
b/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
index 137e6f3..de79bdf 100644
--- 
a/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
+++ 
b/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
@@ -3451,6 +3451,7 @@ public class HBaseTestingUtility extends 
HBaseCommonTestingUtility {
     do {
       port = randomPort();
       if (takenRandomPorts.contains(port)) {
+        port = 0;
         continue;
       }
       takenRandomPorts.add(port);

Reply via email to