zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andor Molnar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ZOOKEEPER-1441) Some test cases are failing because Port bind issue.
Date Mon, 12 Nov 2018 04:24:00 GMT

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-1441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16683204#comment-16683204

Andor Molnar commented on ZOOKEEPER-1441:

It looks like that tests which use QuorumUtil to create quorum are failing, so my guess is
that it's not related to PortAssigment.
QuorumUtil works as follows:
1) Creates QuorumPeer objects and starts them (bind port)
2) Calls startAll() -> call shutdownAll() -> calls shutdown() on each QP -> creates
new QPs -> starts each QP (bind port)

Bind fails at NIOServerCnxnFactory:684 - ss.socket().bind(...)
NIOServerCnxnFactory shutdown() method might not close the socket properly by calling ss.close()
at line 875.

That worked with previous Java versions.

> 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: Test
>          Components: server, tests
>            Reporter: kavita sharma
>            Assignee: Michael Han
>            Priority: Major
>              Labels: flaky, flaky-test
> 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 was sent by Atlassian JIRA

View raw message