[ 
https://issues.apache.org/jira/browse/YARN-9218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zhankun Tang reassigned YARN-9218:
----------------------------------

    Assignee: Zhankun Tang

> When register to MockRM, MockNM spend 30s on 
> InetAddress.getByName(name).getHostAddress();
> ------------------------------------------------------------------------------------------
>
>                 Key: YARN-9218
>                 URL: https://issues.apache.org/jira/browse/YARN-9218
>             Project: Hadoop YARN
>          Issue Type: Improvement
>            Reporter: Zhankun Tang
>            Assignee: Zhankun Tang
>            Priority: Major
>         Attachments: YARN-9218-trunk.001.patch
>
>
> In a test case, reproduce the issue with below code. And you'll see that this 
> three code spends at least 30 seconds to complete.
> {code:java}
> MockRM rm1 = new MockRM(conf);
> rm1.start();
> rm1.registerNode("h1:1234", 2 * GB, 1);{code}
> The root cause is when "registerNode". It will spend 30 seconds in below 
> method which might be invoked in RackResolver, NodeListManager.CachedResolver 
> or NodeListManager.DirectResolver which is used to check a host address when 
> registering.
> Because the name passed in is not real, so it spends lots of time here.
> {code:java}
> InetAddress.getByName(name).getHostAddress();{code}
> We should mock the RackResolver.resolve(hostname) and resolver in 
> NodeListManager to eliminate the wasting time.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org

Reply via email to