HBASE-6677 Random ZooKeeper port in test can overrun max port
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1388125 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
eddc746457
commit
70639863eb
|
@ -171,7 +171,7 @@ public class MiniZooKeeperCluster {
|
||||||
LOG.debug("Failed binding ZK Server to client port: " +
|
LOG.debug("Failed binding ZK Server to client port: " +
|
||||||
tentativePort);
|
tentativePort);
|
||||||
// This port is already in use, try to use another.
|
// This port is already in use, try to use another.
|
||||||
tentativePort++;
|
tentativePort = selectClientPort();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue