Hadoop Common
  1. Hadoop Common
  2. HADOOP-9099

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1-win, 3.0.0
    • 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.

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

        Activity

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development