hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jian He (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-5609) Expose upgrade and restart API in ContainerManagementProtocol
Date Wed, 21 Sep 2016 14:30:22 GMT

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

Jian He commented on YARN-5609:
-------------------------------

I had re-checked the code... actually, even the old resources will also not be purged because
in the container reInit state-machine we are never sending the cleanup event, and the background
cleanup thread also cannot purge it, because the resource is still considered being used by
the container (refCount > 0).  
I think it's an ok assumption to keep two versions of resources current and previous. Code
is also simpler.. We probably need a followup patch to let the background cleanup thread clean
the resourceSet older than the last. User anyway has to provide the full set of resources
via the reInit API if they want to rollback to older than last. what do you think...

> Expose upgrade and restart API in ContainerManagementProtocol
> -------------------------------------------------------------
>
>                 Key: YARN-5609
>                 URL: https://issues.apache.org/jira/browse/YARN-5609
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Arun Suresh
>            Assignee: Arun Suresh
>         Attachments: YARN-5609.001.patch, YARN-5609.002.patch, YARN-5609.003.patch, YARN-5609.004.patch,
YARN-5609.005.patch, YARN-5609.006.patch, YARN-5609.007.patch
>
>
> YARN-5620 and YARN-5637 allows an AM to explicitly *upgrade* a container with a new launch
context and subsequently *rollback* / *commit* the change on the Container. This can also
be used to simply *restart* the Container as well. 
> This JIRA proposes to extend the ContainerManagementProtocol with the following API:
> * *reInitializeContainer*
> * *rollbackLastUpgrade*
> * *commitLastUpgrade*
> * *restartContainer*



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

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


Mime
View raw message