You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Jian He (JIRA)" <ji...@apache.org> on 2014/08/01 23:11:40 UTC
[jira] [Commented] (YARN-1372) Ensure all completed containers are
reported to the AMs across RM restart
[ https://issues.apache.org/jira/browse/YARN-1372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14082967#comment-14082967 ]
Jian He commented on YARN-1372:
-------------------------------
Thanks for working on this. Scan through the patch:
- If AM never pulls the containers (e.g. AM crashed), the containers will remain on NM forever ?
- NM-RM protocol changes: The patch adds a new getCleanedupContainersNotified method and some associated event/state machine changes.Found that maybe we can just use NodeHeartbeatResponse#getContainersToCleanup to notify NM to remove the containers from the context. the newly added getCleanedupContainersNotified() is very similar to the getContainersToCleanup. The code path in RM seems also similar.
> Ensure all completed containers are reported to the AMs across RM restart
> -------------------------------------------------------------------------
>
> Key: YARN-1372
> URL: https://issues.apache.org/jira/browse/YARN-1372
> Project: Hadoop YARN
> Issue Type: Sub-task
> Components: resourcemanager
> Reporter: Bikas Saha
> Assignee: Anubhav Dhoot
> Attachments: YARN-1372.prelim.patch
>
>
> Currently the NM informs the RM about completed containers and then removes those containers from the RM notification list. The RM passes on that completed container information to the AM and the AM pulls this data. If the RM dies before the AM pulls this data then the AM may not be able to get this information again. To fix this, NM should maintain a separate list of such completed container notifications sent to the RM. After the AM has pulled the containers from the RM then the RM will inform the NM about it and the NM can remove the completed container from the new list. Upon re-register with the RM (after RM restart) the NM should send the entire list of completed containers to the RM along with any other containers that completed while the RM was dead. This ensures that the RM can inform the AM's about all completed containers. Some container completions may be reported more than once since the AM may have pulled the container but the RM may die before notifying the NM about the pull.
--
This message was sent by Atlassian JIRA
(v6.2#6252)