Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-4856

Enhancement of QuorumCnxManager to Log Configuration Parameter for Connection Timeout

    XMLWordPrintableJSON

Details

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

      Attachments

        1. original-vs-log-enhanced.md
          4 kB
          LoggingResearch
        2. QuorumCnxManagerTest.java
          3 kB
          LoggingResearch

        Activity

          People

            Unassigned Unassigned
            loggingresearch LoggingResearch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: