hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tibor Kiss (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-4916) TestNMProxy.tesNMProxyRPCRetry fails
Date Sun, 03 Apr 2016 06:43:25 GMT

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

Tibor Kiss commented on YARN-4916:
----------------------------------

The generated logs shows that in case of Linux SocketException is created, which is casted
to IOException in NetUtils.wrapException:
{noformat}
java.io.IOException: Failed on local exception: java.net.SocketException: Invalid argument;
Host Details : local host is: "7f514291a8de/172.17.0.2"; destination host is: "1234":0; 
	at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:787)
	at org.apache.hadoop.ipc.Client.call(Client.java:1356)
	at org.apache.hadoop.ipc.Client.call(Client.java:1306)
	at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:230)
	at com.sun.proxy.$Proxy10.startContainers(Unknown Source)
	at org.apache.hadoop.yarn.api.impl.pb.client.ContainerManagementProtocolPBClientImpl.startContainers(ContainerManagementProtocolPBClientImpl.java:101)
...
{noformat}

In case of OS X & Windows BindException is created which is not casted to IOException
at NetUtils.wrapException:
{noformat}
java.net.BindException: Problem binding to [localhost/127.0.0.1:0] java.net.BindException:
Can't assign requested address; For more details see:  http://wiki.apache.org/hadoop/BindException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:792)
        at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:721)
        at org.apache.hadoop.ipc.Client.call(Client.java:1479)
        at org.apache.hadoop.ipc.Client.call(Client.java:1412)
        at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:229)
        at com.sun.proxy.$Proxy10.startContainers(Unknown Source)
        at org.apache.hadoop.yarn.api.impl.pb.client.ContainerManagementProtocolPBClientImpl.startContainers(ContainerManagementProtocolPBClientImpl.java:96)
{noformat}


> TestNMProxy.tesNMProxyRPCRetry fails
> ------------------------------------
>
>                 Key: YARN-4916
>                 URL: https://issues.apache.org/jira/browse/YARN-4916
>             Project: Hadoop YARN
>          Issue Type: Bug
>    Affects Versions: 3.0.0, 2.8.0, 2.7.3, 2.6.4
>         Environment: OS X 10.11 with Oracle JDK 1.7.0_79
> Windows Server 2012 with Oracle JDK 1.7.0_79
>            Reporter: Tibor Kiss
>            Priority: Minor
>         Attachments: YARN-4916.01.patch, YARN-4916.02-WiP.patch
>
>
> The test ensures that java.net.SocketException is thrown from
> NMProxy.startContainers() without the RPC Request being retried.
> With Oracle JDK 1.7 on OS X & Windows BindException is thrown from startContainers().
> The testcase expects that SocketException is thrown - which is BindException's superclass.
> The exception type check is implemented using string compare and not reflection, therefore
the thrown BindException is not accepted.
> {noformat}
> Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 6.149 sec <<<
FAILURE! - in org.apache.hadoop.yarn.server.nodemanager.containermanager.TestNMProxy
> testNMProxyRPCRetry(org.apache.hadoop.yarn.server.nodemanager.containermanager.TestNMProxy)
 Time elapsed: 0.211 sec  <<< FAILURE!
> java.lang.AssertionError: null
> 	at org.junit.Assert.fail(Assert.java:86)
> 	at org.junit.Assert.assertTrue(Assert.java:41)
> 	at org.junit.Assert.assertTrue(Assert.java:52)
> 	at org.apache.hadoop.yarn.server.nodemanager.containermanager.TestNMProxy.testNMProxyRPCRetry(TestNMProxy.java:191)
> {noformat}
> Actual exception:
> {noformat}
> 2016-04-02 21:25:13,311 WARN  [Thread-93] ipc.Client (Client.java:handleConnectionFailure(880))
- Failed to connect to server: 1234/0.0.4.210:0: retries get failed due to exceeded maximum
allowed retries
> java.net.BindException: Can't assign requested address
>         at sun.nio.ch.Net.connect0(Native Method)
>         at sun.nio.ch.Net.connect(Net.java:465)
>         at sun.nio.ch.Net.connect(Net.java:457)
>         at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:670)
>         at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:192)
>         at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:531)
>         at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:495)
>         at org.apache.hadoop.ipc.Client$Connection.setupConnection(Client.java:634)
>         at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:733)
>         at org.apache.hadoop.ipc.Client$Connection.access$2900(Client.java:378)
>         at org.apache.hadoop.ipc.Client.getConnection(Client.java:1413)
>         at org.apache.hadoop.ipc.Client.call(Client.java:1328)
>         at org.apache.hadoop.ipc.Client.call(Client.java:1306)
>         at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:230)
>         at com.sun.proxy.$Proxy10.startContainers(Unknown Source)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message