[
https://issues.apache.org/jira/browse/YARN-1481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13857979#comment-13857979
]
Karthik Kambatla commented on YARN-1481:
----------------------------------------
RMContextImpl has the HA state. Both getter and setter methods are synchronized
on the HA state.
bq. The callers would see the RM as active as soon as the state variable
changes, even though the RM might be in the process of becoming active.
The setter is called only after the corresponding transition. Ref:
ResourceManager#transitionTo*
Am I missing something?
> Move internal services logic from AdminService to ResourceManager
> -----------------------------------------------------------------
>
> Key: YARN-1481
> URL: https://issues.apache.org/jira/browse/YARN-1481
> Project: Hadoop YARN
> Issue Type: Sub-task
> Reporter: Vinod Kumar Vavilapalli
> Assignee: Vinod Kumar Vavilapalli
> Fix For: 2.4.0
>
> Attachments: YARN-1481-20131207.txt, YARN-1481-20131209.txt,
> yarn-1481-addendum.patch, yarn-1481-addendum.patch
>
>
> This is something I found while reviewing YARN-1318, but didn't halt that
> patch as many cycles went there already. Some top level issues
> - Not easy to follow RM's service life cycle
> -- RM adds only AdminService as its service directly.
> -- Other services are added to RM when AdminService's init calls
> RM.activeServices.init()
> - Overall, AdminService shouldn't encompass all of RM's HA state management.
> It was originally supposed to be the implementation of just the RPC server.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)