You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "Zili Chen (Jira)" <ji...@apache.org> on 2024/01/30 18:11:00 UTC
[jira] [Resolved] (ZOOKEEPER-4791) Improve logging when the connection to a remote server is closed
[ https://issues.apache.org/jira/browse/ZOOKEEPER-4791?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zili Chen resolved ZOOKEEPER-4791.
----------------------------------
Fix Version/s: 3.10.0
Resolution: Fixed
Master via https://github.com/apache/zookeeper/commit/3913303677935a60f05aa0cfc0787d5809961c3b
> Improve logging when the connection to a remote server is closed
> ----------------------------------------------------------------
>
> Key: ZOOKEEPER-4791
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4791
> Project: ZooKeeper
> Issue Type: New Feature
> Components: server
> Affects Versions: 3.9.1
> Reporter: Sönke Liebau
> Priority: Trivial
> Labels: pull-request-available
> Fix For: 3.10.0
>
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> When a server closes the connection to a remote server, the logging around why the connection is being closed could be improved a bit.
> https://github.com/apache/zookeeper/blob/1cc1eb6a2be7323a5c326652d59a070473bb8779/zookeeper-server/src/main/java/org/apache/zookeeper/server/NettyServerCnxn.java#L524
> {code:java}
> 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;
> }
> {code}
> It would be helpful to log what zkServer is, because it can have multiple states that would trigger this shutdown.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)