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

Chandni Singh commented on YARN-7470:
-------------------------------------

For recovery test, the NM needs to connect to RM using RPC which required using 
fixed ports. When the port is already in use, then the test fails with 
BindException. There was an existing util {{HATestUtil}} which finds a free 
port (given a base port) and sets the Rpc address for RM, so I added that to 
the test.

[~jianhe] could you please review?

> TestYarnNativeServices testRecoverComponentsAfterRMRestart fails due to 
> BindingException
> ----------------------------------------------------------------------------------------
>
>                 Key: YARN-7470
>                 URL: https://issues.apache.org/jira/browse/YARN-7470
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Chandni Singh
>            Assignee: Chandni Singh
>             Fix For: yarn-native-services
>
>         Attachments: YARN-7470.001.patch
>
>
>  FAILURE! - in org.apache.hadoop.yarn.service.TestYarnNativeServices
> testRecoverComponentsAfterRMRestart(org.apache.hadoop.yarn.service.TestYarnNativeServices)
>   Time elapsed: 3.404 sec  <<< ERROR!
> org.apache.hadoop.yarn.exceptions.YarnRuntimeException: 
> org.apache.hadoop.yarn.exceptions.YarnRuntimeException: 
> java.net.BindException: Problem binding to [10.22.8.166:52637] 
> java.net.BindException: Can't assign requested address; For more details see: 
>  http://wiki.apache.org/hadoop/BindException
>       at sun.nio.ch.Net.bind0(Native Method)
>       at sun.nio.ch.Net.bind(Net.java:433)
>       at sun.nio.ch.Net.bind(Net.java:425)
>       at 
> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
>       at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
>       at org.apache.hadoop.ipc.Server.bind(Server.java:545)
>       at org.apache.hadoop.ipc.Server$Listener.<init>(Server.java:1035)
>       at org.apache.hadoop.ipc.Server.<init>(Server.java:2807)
>       at org.apache.hadoop.ipc.RPC$Server.<init>(RPC.java:960)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to