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

zhihai xu commented on YARN-2337:
---------------------------------

It is not necessary to call rmContext.setClientRMService(clientRM); twice in 
the following code.
      rmContext.setClientRMService(clientRM);
       addService(clientRM);
       rmContext.setClientRMService(clientRM);
 the first one is removed in the patch.

> remove duplication function call (setClientRMService) in resource manage class
> ------------------------------------------------------------------------------
>
>                 Key: YARN-2337
>                 URL: https://issues.apache.org/jira/browse/YARN-2337
>             Project: Hadoop YARN
>          Issue Type: Improvement
>          Components: resourcemanager
>            Reporter: zhihai xu
>            Assignee: zhihai xu
>            Priority: Minor
>         Attachments: YARN-2337.000.patch
>
>
> remove duplication function call (setClientRMService) in resource manage 
> class.
> rmContext.setClientRMService(clientRM); is duplicate in serviceInit of 
> ResourceManager. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to