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

TableMapping related tests failed due to 'successful' resolving of invalid test hostname

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.7.0
    • None
    • None

    Description

      When mvn test in my environment, it reported the following.

      Failed tests: 
        TestTableMapping.testClearingCachedMappings:144 expected:</[rack1]> but was:</[default-rack]>
        TestTableMapping.testTableCaching:79 expected:</[rack1]> but was:</[default-rack]>
        TestTableMapping.testResolve:56 expected:</[rack1]> but was:</[default-rack]>
      

      It's caused by the good resolving for the 'bad test' hostname 'a.b.c' as follows.

      [drankye@zkdesk hadoop-common-project]$ ping a.b.c
      PING a.b.c (220.250.64.228) 56(84) bytes of data.
      

      I understand it may happen in just my local environment, and document this just in case others also meet this. We may use even worse hostname than 'a.b.c' to avoid such situation.

      Attachments

        1. HADOOP-11535-v1.patch
          4 kB
          Kai Zheng

        Activity

          People

            drankye Kai Zheng
            drankye Kai Zheng
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: