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

Chris Nauroth commented on HDFS-4607:
-------------------------------------

Hi, Ivan.  This patch for fixing the newline issue looks good, but I found it 
quite strange that {{TestGetConf#testFederation}} took so long.  In fact, the 
300s timeout used in this patch wasn't even sufficient time for me.  On my 
Windows VM, it takes more like 400s.  When running on Mac, this test completes 
in less than 1 second.

Digging into the issue, it appears to be a problem of slow response trying to 
resolve an unknown host name.  The test generates multiple bogus host names of 
the form nn1, nn2, nn3, etc.  Each call to {{TestGetConf#setupAddress}} ends up 
iterating through each of 10 such addresses, ultimately calling 
{{InetAddress#getByName}}.  The same thing happens again later for each call to 
{{TestGetConf#verifyAddresses}}.  On Mac, this comes back nearly 
instantaneously with host not found.  On my Windows VM, each host name takes 
~2.25s before responding with host not found.  Simply running "ping nn1" on the 
command prompt confirms this behavior.  Do you know if we're experiencing a 
Windows network misconfiguration?

If the solution isn't obvious, then I suggest that we remove the timeout from 
{{testFederation}} for now and file a follow-up jira to address the test 
sluggishness later.

                
> TestGetConf#testGetSpecificKey fails on Windows
> -----------------------------------------------
>
>                 Key: HDFS-4607
>                 URL: https://issues.apache.org/jira/browse/HDFS-4607
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 3.0.0
>            Reporter: Ivan Mitic
>            Assignee: Ivan Mitic
>         Attachments: HDFS-4607.patch
>
>
> Test fails on the below stack:
> {code}
> testGetSpecificKey(org.apache.hadoop.hdfs.tools.TestGetConf)  Time elapsed: 
> 37 sec  <<< FAILURE!
> java.lang.AssertionError: 
>       at org.junit.Assert.fail(Assert.java:91)
>       at org.junit.Assert.assertTrue(Assert.java:43)
>       at org.junit.Assert.assertTrue(Assert.java:54)
>       at 
> org.apache.hadoop.hdfs.tools.TestGetConf.testGetSpecificKey(TestGetConf.java:341)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to