You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Eli Collins (Created) (JIRA)" <ji...@apache.org> on 2012/01/16 19:19:39 UTC

[jira] [Created] (HADOOP-7978) TestHostnameFilter should work with localhost or localhost.localdomain

TestHostnameFilter should work with localhost or localhost.localdomain 
-----------------------------------------------------------------------

                 Key: HADOOP-7978
                 URL: https://issues.apache.org/jira/browse/HADOOP-7978
             Project: Hadoop Common
          Issue Type: Test
          Components: fs, test
    Affects Versions: 0.23.0
            Reporter: Eli Collins


TestHostnameFilter may currently fail with the following:

{noformat}
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)
{noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-7978) TestHostnameFilter should work with localhost or localhost.localdomain

Posted by "Peter Linnell (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-7978?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13187921#comment-13187921 ] 

Peter Linnell commented on HADOOP-7978:
---------------------------------------

localhost.localdomain is RedHat centric and will certainly fail on other rpm distros
                
> TestHostnameFilter should work with localhost or localhost.localdomain 
> -----------------------------------------------------------------------
>
>                 Key: HADOOP-7978
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7978
>             Project: Hadoop Common
>          Issue Type: Test
>          Components: fs, test
>    Affects Versions: 0.23.0
>            Reporter: Eli Collins
>
> TestHostnameFilter may currently fail with the following:
> {noformat}
> 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)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (HADOOP-7978) TestHostnameFilter should work with localhost or localhost.localdomain

Posted by "Alejandro Abdelnur (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-7978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alejandro Abdelnur resolved HADOOP-7978.
----------------------------------------

    Resolution: Invalid

This is an issue in systems where /etc/hosts is not properly configured for the loopback

The loopback definition should be:

  127.0.0.1 localhost.localdomain localhost

It seem the system had:

  127.0.0.1 localhost localhost.localdomain




                
> TestHostnameFilter should work with localhost or localhost.localdomain 
> -----------------------------------------------------------------------
>
>                 Key: HADOOP-7978
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7978
>             Project: Hadoop Common
>          Issue Type: Test
>          Components: fs, test
>    Affects Versions: 0.23.0
>            Reporter: Eli Collins
>
> TestHostnameFilter may currently fail with the following:
> {noformat}
> 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)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HADOOP-7978) TestHostnameFilter should work with localhost or localhost.localdomain

Posted by "Alejandro Abdelnur (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-7978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alejandro Abdelnur updated HADOOP-7978:
---------------------------------------

    Attachment: HDFS-7978.patch

changing assertion to check for containing 'localhost' instead of equals
                
> TestHostnameFilter should work with localhost or localhost.localdomain 
> -----------------------------------------------------------------------
>
>                 Key: HADOOP-7978
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7978
>             Project: Hadoop Common
>          Issue Type: Test
>          Components: test
>    Affects Versions: 0.23.0
>            Reporter: Eli Collins
>            Assignee: Alejandro Abdelnur
>             Fix For: 0.23.1
>
>
> TestHostnameFilter may currently fail with the following:
> {noformat}
> 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)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HADOOP-7978) TestHostnameFilter should work with localhost or localhost.localdomain

Posted by "Alejandro Abdelnur (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-7978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alejandro Abdelnur updated HADOOP-7978:
---------------------------------------

    Status: Patch Available  (was: Reopened)
    
> TestHostnameFilter should work with localhost or localhost.localdomain 
> -----------------------------------------------------------------------
>
>                 Key: HADOOP-7978
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7978
>             Project: Hadoop Common
>          Issue Type: Test
>          Components: test
>    Affects Versions: 0.23.0
>            Reporter: Eli Collins
>            Assignee: Alejandro Abdelnur
>
> TestHostnameFilter may currently fail with the following:
> {noformat}
> 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)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Reopened] (HADOOP-7978) TestHostnameFilter should work with localhost or localhost.localdomain

Posted by "Alejandro Abdelnur (Reopened) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-7978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alejandro Abdelnur reopened HADOOP-7978:
----------------------------------------


it seems there is no standard for what goes first, we'll have to change the test to test for both.
                
> TestHostnameFilter should work with localhost or localhost.localdomain 
> -----------------------------------------------------------------------
>
>                 Key: HADOOP-7978
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7978
>             Project: Hadoop Common
>          Issue Type: Test
>          Components: fs, test
>    Affects Versions: 0.23.0
>            Reporter: Eli Collins
>
> TestHostnameFilter may currently fail with the following:
> {noformat}
> 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)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (HADOOP-7978) TestHostnameFilter should work with localhost or localhost.localdomain

Posted by "Alejandro Abdelnur (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-7978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alejandro Abdelnur reassigned HADOOP-7978:
------------------------------------------

    Assignee: Alejandro Abdelnur
    
> TestHostnameFilter should work with localhost or localhost.localdomain 
> -----------------------------------------------------------------------
>
>                 Key: HADOOP-7978
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7978
>             Project: Hadoop Common
>          Issue Type: Test
>          Components: fs, test
>    Affects Versions: 0.23.0
>            Reporter: Eli Collins
>            Assignee: Alejandro Abdelnur
>
> TestHostnameFilter may currently fail with the following:
> {noformat}
> 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)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira