HBASE-14784 Port conflict is not resolved in HBaseTestingUtility.randomFreePort() (Youngjoon Kim)
This commit is contained in:
parent
17fd03ea8d
commit
d3e653a261
|
@ -3717,6 +3717,7 @@ public class HBaseTestingUtility extends HBaseCommonTestingUtility {
|
|||
do {
|
||||
port = randomPort();
|
||||
if (takenRandomPorts.contains(port)) {
|
||||
port = 0;
|
||||
continue;
|
||||
}
|
||||
takenRandomPorts.add(port);
|
||||
|
|
Loading…
Reference in New Issue