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