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

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

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1-win, 3.0.0-alpha1
    • 1.2.0, 1-win, 2.5.0
    • test
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment