[ 
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.2.patch

Thanks for the reviews, but I'm uploading a new version.  I think we can avoid 
the Windows-specific conditional by pulling the correct host name out of the 
{{InetSocketAddress}}.  I re-tested this successfully on Mac and Windows.

Does this still look OK?

> 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, HDFS-5432.2.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