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

Siddharth Seth commented on TEZ-1547:
-------------------------------------

Scratch that; I see how this can happen.
{code}
srcVertexConfigured.put(srcVertex, false);
getContext().registerForVertexStateUpdates(srcVertex, 
EnumSet.of(VertexState.COMPLETELY_CONFIGURED));
{code}
The registration right after adding to the map, will cause the 
StateChangeNotifier to make a synchronous call back notifying of the 
vertexStateUpdated, if the src vertex has already started.

> Make use of state change notifier in VertexManagerPlugins
> ---------------------------------------------------------
>
>                 Key: TEZ-1547
>                 URL: https://issues.apache.org/jira/browse/TEZ-1547
>             Project: Apache Tez
>          Issue Type: Improvement
>            Reporter: Siddharth Seth
>            Assignee: Bikas Saha
>         Attachments: TEZ-1547.1.patch, TEZ-1547.3.patch, TEZ-1547.4.patch, 
> TEZ-1547.5.patch, TEZ-1547.6.patch, TEZ-1547.7.patch
>
>
> Instead of the various APIs like onVertexStarted, simple notifications could 
> be sent.
> Some existing APIs could end up being deprecated.



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

Reply via email to