hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-6677) Random ZooKeeper port in test can overrun max port
Date Thu, 20 Sep 2012 19:33:08 GMT

    [ https://issues.apache.org/jira/browse/HBASE-6677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13459878#comment-13459878
] 

Hudson commented on HBASE-6677:
-------------------------------

Integrated in HBase-TRUNK #3359 (See [https://builds.apache.org/job/HBase-TRUNK/3359/])
    HBASE-6677 Random ZooKeeper port in test can overrun max port (Revision 1388125)

     Result = FAILURE
stack : 
Files : 
* /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java

                
> Random ZooKeeper port in test can overrun max port
> --------------------------------------------------
>
>                 Key: HBASE-6677
>                 URL: https://issues.apache.org/jira/browse/HBASE-6677
>             Project: HBase
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 0.96.0
>            Reporter: Gregory Chanan
>            Assignee: liang xie
>            Priority: Trivial
>              Labels: noob
>             Fix For: 0.96.0
>
>         Attachments: HBASE-6677.patch
>
>
> {code} 
>      while (true) {
>         try {
>           standaloneServerFactory = new NIOServerCnxnFactory();
>           standaloneServerFactory.configure(
>             new InetSocketAddress(tentativePort),
>             configuration.getInt(HConstants.ZOOKEEPER_MAX_CLIENT_CNXNS,
>               1000));
>         } catch (BindException e) {
>           LOG.debug("Failed binding ZK Server to client port: " +
>               tentativePort);
>           // This port is already in use, try to use another.
>           tentativePort++;
>           continue;
>         }
>         break;
>       }
> {code}
> In the case of failure and all the above ports have already been binded, you can extend
past the max port.  Need to check against a max value.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message