[
https://issues.apache.org/jira/browse/HDFS-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ivan Mitic updated HDFS-4722:
-----------------------------
Attachment: HDFS-4722.patch
The test times out because the hostname resolution for non-existing hosts can
be slow.
Attaching the fix which adds test hostnames (namenode addresses) to the static
resolution list, hence avoiding the slow DNS resolution step.
> TestGetConf#testFederation times out on Windows
> -----------------------------------------------
>
> Key: HDFS-4722
> URL: https://issues.apache.org/jira/browse/HDFS-4722
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: test
> Affects Versions: 3.0.0
> Reporter: Ivan Mitic
> Assignee: Ivan Mitic
> Attachments: HDFS-4722.patch
>
>
> Test times out on the below stack:
> {code}
> java.lang.Exception: test timed out after 10000 milliseconds
> at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
> at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:849)
> at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1202)
> at java.net.InetAddress.getAllByName0(InetAddress.java:1153)
> at java.net.InetAddress.getAllByName(InetAddress.java:1083)
> at java.net.InetAddress.getAllByName(InetAddress.java:1019)
> at java.net.InetAddress.getByName(InetAddress.java:969)
> at
> org.apache.hadoop.security.SecurityUtil$StandardHostResolver.getByName(SecurityUtil.java:543)
> at
> org.apache.hadoop.security.SecurityUtil.getByName(SecurityUtil.java:530)
> at
> org.apache.hadoop.net.NetUtils.createSocketAddrForHost(NetUtils.java:232)
> at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:212)
> at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:160)
> at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:149)
> at
> org.apache.hadoop.hdfs.DFSUtil.getAddressesForNameserviceId(DFSUtil.java:483)
> at org.apache.hadoop.hdfs.DFSUtil.getAddresses(DFSUtil.java:466)
> at
> org.apache.hadoop.hdfs.DFSUtil.getNNServiceRpcAddresses(DFSUtil.java:592)
> at
> org.apache.hadoop.hdfs.tools.TestGetConf.getAddressListFromConf(TestGetConf.java:109)
> at
> org.apache.hadoop.hdfs.tools.TestGetConf.verifyAddresses(TestGetConf.java:209)
> at
> org.apache.hadoop.hdfs.tools.TestGetConf.testFederation(TestGetConf.java:313)
> {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