[ 
https://issues.apache.org/jira/browse/HDFS-5432?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chris Nauroth updated HDFS-5432:
--------------------------------

    Attachment: HDFS-5432.1.patch

This patch changes the assertion so that it checks for "127.0.0.1" on Windows 
or "localhost" on other platforms.

> TestDatanodeJsp fails on Windows due to assumption that loopback address 
> resolves to host name localhost.
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-5432
>                 URL: https://issues.apache.org/jira/browse/HDFS-5432
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: datanode, test
>    Affects Versions: 3.0.0, 2.2.0
>            Reporter: Chris Nauroth
>            Assignee: Chris Nauroth
>            Priority: Trivial
>         Attachments: HDFS-5432.1.patch
>
>
> As discussed in many previous issues, Windows differs from Unixes in that it 
> does not resolve the loopback address to hostname "localhost".  Instead, the 
> host name remains unresolved as "127.0.0.1".  {{TestDatanodeJsp}} fails on 
> Windows, because it attempts to assert a string match containing "localhost" 
> as the host name.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to