Repository: hbase
Updated Branches:
  refs/heads/branch-1.2 2a19cb179 -> 520c02b70


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/520c02b7
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/520c02b7
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/520c02b7

Branch: refs/heads/branch-1.2
Commit: 520c02b70f4bfdf223aae73dab6b0aa3bf58a52c
Parents: 2a19cb1
Author: tedyu <[email protected]>
Authored: Sun Nov 8 08:53:10 2015 -0800
Committer: tedyu <[email protected]>
Committed: Sun Nov 8 08:53:10 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/520c02b7/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 4732454..4436245 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
@@ -3682,6 +3682,7 @@ public class HBaseTestingUtility extends 
HBaseCommonTestingUtility {
     do {
       port = randomPort();
       if (takenRandomPorts.contains(port)) {
+        port = 0;
         continue;
       }
       takenRandomPorts.add(port);

Reply via email to