hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arun Suresh (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (YARN-7192) Add a pluggable StateMachine Listener that is notified of NM Container State changes
Date Fri, 15 Sep 2017 02:12:00 GMT

     [ https://issues.apache.org/jira/browse/YARN-7192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Arun Suresh updated YARN-7192:
    Attachment: YARN-7192.003.patch

Updated the patch. Sorry missed including the yarn-defaults-xml change earlier.

bq. I do not see the reason for having NoopStateTransitionListener. Why do not we just skip
calling in case of null and use null as the noop listener?
Hmm.. it is not technically needed, I just prefer it to having if checks. Do you have a strong
preference against it ?

bq. What happens if there is no state transition, just a call? If the current state is the
same as the previous state we still call post transition.
Yup, I figure it should still call both pre and pst right ? The implementation should figure
out from the states passed in the pre and post that no transition has happened.

Fixed everything else.

> Add a pluggable StateMachine Listener that is notified of NM Container State changes
> ------------------------------------------------------------------------------------
>                 Key: YARN-7192
>                 URL: https://issues.apache.org/jira/browse/YARN-7192
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Arun Suresh
>            Assignee: Arun Suresh
>         Attachments: YARN-7192.001.patch, YARN-7192.002.patch, YARN-7192.003.patch
> This JIRA is to add support for a plugggable class in the NodeManager that is notified
of changes to the Container StateMachine state and the events that caused the change.
> The proposal is to modify the basic StateMachine class add support for a hook that is
called before and after a transition.

This message was sent by Atlassian JIRA

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

View raw message