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:
Michael Stack 2012-09-20 17:37:01 +00:00
parent eddc746457
commit 70639863eb
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ public class MiniZooKeeperCluster {
LOG.debug("Failed binding ZK Server to client port: " +
tentativePort);
// This port is already in use, try to use another.
tentativePort++;
tentativePort = selectClientPort();
continue;
}
break;