Details
-
Improvement
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
3.9.1
Description
When a server closes the connection to a remote server, the logging around why the connection is being closed could be improved a bit.
ZooKeeperServer zks = this.zkServer; if (zks == null || !zks.isRunning()) { LOG.info("Closing connection to {} because the server is not ready", getRemoteSocketAddress()); close(DisconnectReason.IO_EXCEPTION); return; }
It would be helpful to log what zkServer is, because it can have multiple states that would trigger this shutdown.
Attachments
Issue Links
- links to