Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-2840

TestHostnameFilter should work with localhost or localhost.localdomain

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.23.0
    • 0.23.1
    • test
    • None
    • Reviewed

    Description

      TestHostnameFilter may currently fail with the following:

      Error Message
      
      null expected:<localhost[.localdomain]> but was:<localhost[]>
      Stacktrace
      
      junit.framework.ComparisonFailure: null expected:<localhost[.localdomain]> but was:<localhost[]>
      	at junit.framework.Assert.assertEquals(Assert.java:81)
      	at junit.framework.Assert.assertEquals(Assert.java:87)
      	at org.apache.hadoop.lib.servlet.TestHostnameFilter$1.doFilter(TestHostnameFilter.java:50)
      	at org.apache.hadoop.lib.servlet.HostnameFilter.doFilter(HostnameFilter.java:68)
      	at org.apache.hadoop.lib.servlet.TestHostnameFilter.hostname(TestHostnameFilter.java:58)
      

      Attachments

        1. HDFS-2840.patch
          0.9 kB
          Alejandro Abdelnur

        Activity

          People

            tucu00 Alejandro Abdelnur
            eli Eli Collins
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: