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

Roni Burd commented on YARN-7192:
---------------------------------

I agree with the performance/concurrency concerns but think Arun's comment make 
sense: any bug in the state machine functions can cause issues.

One thing that you could do is implement and Async and a Sync Listener 
interface and let the user decide which one he wants to use. In the case our 
MSFT cosmos clusters, we would need the Sync listener implementation first 
because we need to make sure we do events in a serial order (same as the state 
machine)

> 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
>
>
> 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
(v6.4.14#64029)

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

Reply via email to