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

NetUtils.normalizeHostName fails on domains where UnknownHost resolves to an IP address

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1-win, 3.0.0-alpha1
    • Fix Version/s: 1.2.0, 1-win, 2.5.0
    • Component/s: test
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      I just hit this failure. We should use some more unique string for "UnknownHost":

      Testcase: testNormalizeHostName took 0.007 sec
      FAILED
      expected:<[65.53.5.181]> but was:<[UnknownHost]>
      junit.framework.AssertionFailedError: expected:<[65.53.5.181]> but was:<[UnknownHost]>
      at org.apache.hadoop.net.TestNetUtils.testNormalizeHostName(TestNetUtils.java:347)

      Will post a patch in a bit.

        Attachments

        1. HADOOP-9099.trunk.patch
          0.8 kB
          Ivan Mitic
        2. HADOOP-9099.branch-1-win.patch
          0.7 kB
          Ivan Mitic

          Activity

            People

            • Assignee:
              ivanmi Ivan Mitic
              Reporter:
              ivanmi Ivan Mitic
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: