hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Mitic (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-4607) TestGetConf#testGetSpecificKey fails on Windows
Date Tue, 19 Mar 2013 00:29:17 GMT

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

Ivan Mitic commented on HDFS-4607:

bq. 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?
Thanks Chris. I also looked deeper into the issue. I don't think we can do anything here,
and actually, I am not sure if this as a problem. It should be OK for unknown host resolution
to take a few seconds (please correct me if needed, I am no expert here :)). I have an idea
of how to fix this such that the test runs faster on Windows, but will do this via a separate
patch to avoid randomizing this fix.
> 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.2.patch, HDFS-4607.patch
> Test fails on the below stack:
> {code}
> testGetSpecificKey(org.apache.hadoop.hdfs.tools.TestGetConf)  Time elapsed: 37 sec  <<<
> 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

View raw message