Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.9.2
-
None
-
None
-
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.
Description
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.