[
https://issues.apache.org/jira/browse/YARN-1431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13861113#comment-13861113
]
haosdent commented on YARN-1431:
--------------------------------
The real cause of timeout exception is this code. Maybe it depends on your
machine.
{code:java}
mainServer = WebAppProxyServer.startServer(conf);
{code}
{code}
java.lang.Exception: test timed out after 5000 milliseconds
at java.net.Inet4AddressImpl.getHostByAddr(Native Method)
{code}
> TestWebAppProxyServlet is failing on trunk
> ------------------------------------------
>
> Key: YARN-1431
> URL: https://issues.apache.org/jira/browse/YARN-1431
> Project: Hadoop YARN
> Issue Type: Bug
> Affects Versions: 2.3.0
> Reporter: Omkar Vinit Joshi
> Priority: Blocker
>
> Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 6.609 sec <<<
> FAILURE! - in org.apache.hadoop.yarn.server.webproxy.TestWebAppProxyServlet
> testWebAppProxyServerMainMethod(org.apache.hadoop.yarn.server.webproxy.TestWebAppProxyServlet)
> Time elapsed: 5.006 sec <<< ERROR!
> java.lang.Exception: test timed out after 5000 milliseconds
> at java.net.Inet4AddressImpl.getHostByAddr(Native Method)
> at java.net.InetAddress$1.getHostByAddr(InetAddress.java:881)
> at java.net.InetAddress.getHostFromNameService(InetAddress.java:560)
> at java.net.InetAddress.getCanonicalHostName(InetAddress.java:531)
> at
> org.apache.hadoop.security.SecurityUtil.getLocalHostName(SecurityUtil.java:227)
> at org.apache.hadoop.security.SecurityUtil.login(SecurityUtil.java:247)
> at
> org.apache.hadoop.yarn.server.webproxy.WebAppProxyServer.doSecureLogin(WebAppProxyServer.java:72)
> at
> org.apache.hadoop.yarn.server.webproxy.WebAppProxyServer.serviceInit(WebAppProxyServer.java:57)
> at
> org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
> at
> org.apache.hadoop.yarn.server.webproxy.WebAppProxyServer.startServer(WebAppProxyServer.java:99)
> at
> org.apache.hadoop.yarn.server.webproxy.TestWebAppProxyServlet.testWebAppProxyServerMainMethod(TestWebAppProxyServlet.java:187)
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)