LoggingResearch created ZOOKEEPER-4856: ------------------------------------------
Summary: Enhancement of QuorumCnxManager to Log Configuration Parameter for Connection Timeout Key: ZOOKEEPER-4856 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4856 Project: ZooKeeper Issue Type: Improvement Components: server Affects Versions: 3.9.2 Environment: Zookeeper Version: 3.9.2 Location: {{{}`zookeeper/zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/QuorumCnxManager.java`{}}}, in its constructor method. Lines 320-323. Reporter: LoggingResearch Attachments: QuorumCnxManagerTest.java, original-vs-log-enhanced.md The {{QuorumCnxManager}} constructor in the ZooKeeper quorum module reads the {{zookeeper.cnxTimeout}} system property to set the connection timeout. However, there is currently no logging in place to indicate whether this parameter has been set or what its value is. This enhancement adds logging to ensure that users are informed whether the parameter is set and what value it holds, or if it falls back to the default timeout. *Expected Behavior:* When the system property {{zookeeper.cnxTimeout}} is set, a log message should be generated indicating the value and the configured timeout in milliseconds. If the property is not set, a warning should be logged stating that the default timeout will be used. *How-to-Fix:* We propose adding logging statements to expose the relationship between the {{zookeeper.cnxTimeout}} system property and the connection timeout configuration. This will help in debugging and understanding how the system parameter affects the quorum manager's behavior. -- This message was sent by Atlassian Jira (v8.20.10#820010)