You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2012/09/20 19:37:01 UTC

svn commit: r1388125 - /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java

Author: stack
Date: Thu Sep 20 17:37:01 2012
New Revision: 1388125

URL: http://svn.apache.org/viewvc?rev=1388125&view=rev
Log:
HBASE-6677 Random ZooKeeper port in test can overrun max port

Modified:
    hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java

Modified: hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java?rev=1388125&r1=1388124&r2=1388125&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java (original)
+++ hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java Thu Sep 20 17:37:01 2012
@@ -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;