[ 
https://issues.apache.org/jira/browse/HADOOP-8414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13280489#comment-13280489
 ] 

Daryn Sharp commented on HADOOP-8414:
-------------------------------------

I'm not sure I understand the issue.  Are you saying that on Windows creating 
an {{InetSocketAddress}} from "localhost" will return 127.0.0.1 as the hostname?

Also, isn't it a bit redundant to check both host and authority?  Why not just 
authority?
{code}if (uri.getHost() == null && uri.getAuthority() == null){code}
                
> Address problems related to localhost resolving to 127.0.0.1 on Windows
> -----------------------------------------------------------------------
>
>                 Key: HADOOP-8414
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8414
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs, test
>    Affects Versions: 1.0.0
>            Reporter: Ivan Mitic
>            Assignee: Ivan Mitic
>         Attachments: HADOOP-8414-branch-1-win.patch
>
>
> Localhost resolves to 127.0.0.1 on Windows and that causes the following 
> tests to fail:
>  - TestHarFileSystem
>  - TestCLI
>  - TestSaslRPC
> This Jira tracks fixing these tests and other possible places that have 
> similar issue.

--
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

        

Reply via email to