Leader Ni created ZOOKEEPER-1480:
------------------------------------
Summary: ClientCnxn(1161) can't get the current zk server add, so
that - Session 0x for server null, unexpected error
Key: ZOOKEEPER-1480
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1480
Project: ZooKeeper
Issue Type: Bug
Components: java client
Affects Versions: 3.3.3
Reporter: Leader Ni
Assignee: Leader Ni
Fix For: 3.3.6
When zookeeper occur an unexpected error( Not SessionExpiredException,
SessionTimeoutException and EndOfStreamException), ClientCnxn(1161) will log
such as the formart "Session 0x for server null, unexpected error, closing
socket connection and attempting reconnect ". The log at line 1161 in
zookeeper-3.3.3
We found that, sometimes, it logs "Session 0x for server null", you know, if
log null, developer can't determine the current zookeeper addr that client is
connected or connecting.
I add a method in Class SendThread:InetSocketAddress
org.apache.zookeeper.ClientCnxn.SendThread.getCurrentZooKeeperAddr().
--
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