hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bikas Saha (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-417) Add a poller that allows the AM to receive notifications when it is assigned containers
Date Tue, 19 Mar 2013 17:17:16 GMT

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

Bikas Saha commented on YARN-417:

The client can make a call to stop() before making a call to unregister (bad code, race in
code, client got reboot from RM etc) In that case the code may crash according to the sequence
I described earlier, wont it? so the safety of unregister having being called before stop
is not guaranteed, right? Calling client.stop() after heartbeat.join() is the right thing
to do irrespective of any safety offered by some other method call (that may or may not happen).
Let us do that unless there is a good reason not to.

There was a burden on the app to call heartbeat periodically. We are removing that burden
in this jira. A related burden was to update progress periodically which was tied to the heartbeat.
From what I see, remembering to update the progress periodically is still a burden on the
app. Is it not so?

> Add a poller that allows the AM to receive notifications when it is assigned containers
> ---------------------------------------------------------------------------------------
>                 Key: YARN-417
>                 URL: https://issues.apache.org/jira/browse/YARN-417
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: api, applications
>    Affects Versions: 2.0.3-alpha
>            Reporter: Sandy Ryza
>            Assignee: Sandy Ryza
>         Attachments: AMRMClientAsync-1.java, AMRMClientAsync.java, YARN-417-1.patch,
YARN-417-2.patch, YARN-417-3.patch, YARN-417-4.patch, YARN-417-4.patch, YARN-417.patch, YarnAppMaster.java,
> Writing AMs would be easier for some if they did not have to handle heartbeating to the
RM on their own.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message