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

This commit is contained in:
tedyu 2015-11-08 08:51:44 -08:00
parent 17fd03ea8d
commit d3e653a261
1 changed files with 1 additions and 0 deletions

View File

@ -3717,6 +3717,7 @@ public class HBaseTestingUtility extends HBaseCommonTestingUtility {
do {
port = randomPort();
if (takenRandomPorts.contains(port)) {
port = 0;
continue;
}
takenRandomPorts.add(port);