You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "kavita sharma (Created) (JIRA)" <ji...@apache.org> on 2012/04/03 14:16:26 UTC

[jira] [Created] (ZOOKEEPER-1441) Some test cases are failing because Port bind issue.

Some test cases are failing because Port bind issue.
----------------------------------------------------

                 Key: ZOOKEEPER-1441
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1441
             Project: ZooKeeper
          Issue Type: Bug
            Reporter: kavita sharma


very frequently testcases are failing because of :

java.net.BindException: Address already in use
	at sun.nio.ch.Net.bind(Native Method)
	at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:126)
	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)
	at org.apache.zookeeper.server.NIOServerCnxnFactory.configure(NIOServerCnxnFactory.java:111)
	at org.apache.zookeeper.server.ServerCnxnFactory.createFactory(ServerCnxnFactory.java:112)
	at org.apache.zookeeper.server.quorum.QuorumPeer.<init>(QuorumPeer.java:514)
	at org.apache.zookeeper.test.QuorumBase.startServers(QuorumBase.java:156)
	at org.apache.zookeeper.test.QuorumBase.setUp(QuorumBase.java:103)
	at org.apache.zookeeper.test.QuorumBase.setUp(QuorumBase.java:67)

may be because of Port Assignment so please give me some suggestions if someone is also facing same problem.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (ZOOKEEPER-1441) Some test cases are failing because Port bind issue.

Posted by "Patrick Hunt (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-1441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13262246#comment-13262246 ] 

Patrick Hunt commented on ZOOKEEPER-1441:
-----------------------------------------

We don't see this very often, typically if one of the tests fails it may not cleanup, then the subsequent tests (using the same jvm) will see this. I've also seen this in Jenkins environment where multiple slots are being used on a host (and either ZK itself or some other component which uses zk is being tested simultaneously)
                
> Some test cases are failing because Port bind issue.
> ----------------------------------------------------
>
>                 Key: ZOOKEEPER-1441
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1441
>             Project: ZooKeeper
>          Issue Type: Bug
>            Reporter: kavita sharma
>
> very frequently testcases are failing because of :
> java.net.BindException: Address already in use
> 	at sun.nio.ch.Net.bind(Native Method)
> 	at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:126)
> 	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
> 	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)
> 	at org.apache.zookeeper.server.NIOServerCnxnFactory.configure(NIOServerCnxnFactory.java:111)
> 	at org.apache.zookeeper.server.ServerCnxnFactory.createFactory(ServerCnxnFactory.java:112)
> 	at org.apache.zookeeper.server.quorum.QuorumPeer.<init>(QuorumPeer.java:514)
> 	at org.apache.zookeeper.test.QuorumBase.startServers(QuorumBase.java:156)
> 	at org.apache.zookeeper.test.QuorumBase.setUp(QuorumBase.java:103)
> 	at org.apache.zookeeper.test.QuorumBase.setUp(QuorumBase.java:67)
> may be because of Port Assignment so please give me some suggestions if someone is also facing same problem.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira