Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-19268

Improve Logging for Empty or Missing Socket Factory Configuration

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.3.6
    • None
    • common
    • None
    • Hadoop Version: `3.3.6`
      Location: `hadoop/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/net/NetUtils.java`,in `getDefaultSocketFactory` method. Lines 126 - 129.

    Description

      In the current implementation of the NetUtils.getDefaultSocketFactory method, when the configuration parameter hadoop.rpc.socket.factory.class.default is not set or is empty, the method silently defaults to using the standard SocketFactory. However, this lack of logging can make it difficult to diagnose configuration issues. We propose enhancing the code with logging to warn users when this situation occurs.
       
      Expected Behavior:
      When the hadoop.rpc.socket.factory.class.default configuration parameter is missing or empty, a warning log should be generated, informing the user that the system is defaulting to the standard SocketFactory.
       
      How-to-Fix:
      We propose to expose this relationship by logging a warning when the hadoop.rpc.socket.factory.class.default parameter is missing or empty.

      Attachments

        1. TestNetUtils.java
          0.4 kB
          LoggingResearch
        2. original-vs-log-enhanced.md
          2 kB
          LoggingResearch

        Activity

          People

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

            Dates

              Created:
              Updated: