You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "Nishanth Entoor (Jira)" <ji...@apache.org> on 2020/04/24 08:42:00 UTC
[jira] [Updated] (ZOOKEEPER-3800) improve the log printing the
address when QuorumCnxManager#ListenerHandler's port binds
[ https://issues.apache.org/jira/browse/ZOOKEEPER-3800?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nishanth Entoor updated ZOOKEEPER-3800:
---------------------------------------
Labels: pull-request-available (was: )
> improve the log printing the address when QuorumCnxManager#ListenerHandler's port binds
> ----------------------------------------------------------------------------------------
>
> Key: ZOOKEEPER-3800
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3800
> Project: ZooKeeper
> Issue Type: Improvement
> Reporter: maoling
> Assignee: Nishanth Entoor
> Priority: Minor
> Labels: pull-request-available
> Fix For: 3.7.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
>
> 1.
> {code:java}
> LOG.error("Exception while listening", e);{code}
>
> At least, the log should print the address to help me find what port has conflicted in my host
> 2. The stack trace is following:
>
> {code:java}
> 2020-04-17 18:49:24,757 [myid:1] - INFO [main:ZKAuditProvider@42] - ZooKeeper audit is disabled.
> 2020-04-17 18:49:24,758 [myid:1] - ERROR [ListenerHandler-/127.0.0.1:3888:QuorumCnxManager$Listener$ListenerHandler@1093] - Exception while listening
> java.net.BindException: Address already in use (Bind failed)
> at java.net.PlainSocketImpl.socketBind(Native Method)
> at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
> at java.net.ServerSocket.bind(ServerSocket.java:375)
> at java.net.ServerSocket.bind(ServerSocket.java:329)
> at org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener$ListenerHandler.createNewServerSocket(QuorumCnxManager.java:1134)
> at org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener$ListenerHandler.acceptConnections(QuorumCnxManager.java:1064)
> at org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener$ListenerHandler.run(QuorumCnxManager.java:1033)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> 2020-04-17 18:49:24,764 [myid:1] - INFO [QuorumPeer[myid=1](plain=[0:0:0:0:0:0:0:0]:2183)(secure=disabled):QuorumPeer@1371] - LOOKING
> 2020-04-17 18:49:24,765 [myid:1] - INFO [QuorumPeer[myid=1](plain=[0:0:0:0:0:0:0:0]:2183)(secure=disabled):FastLeaderElection@944] - New election. My id = 1, proposed zxid=0xfab000000002
> {code}
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)