You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tez.apache.org by "Hitesh Shah (JIRA)" <ji...@apache.org> on 2016/04/21 23:56:13 UTC

[jira] [Commented] (TEZ-3224) User payload is not initialized before creating vertex manager plugin

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

Hitesh Shah commented on TEZ-3224:
----------------------------------

Please add a unit test. 

> User payload is not initialized before creating vertex manager plugin
> ---------------------------------------------------------------------
>
>                 Key: TEZ-3224
>                 URL: https://issues.apache.org/jira/browse/TEZ-3224
>             Project: Apache Tez
>          Issue Type: Bug
>            Reporter: Zhiyuan Yang
>            Assignee: Zhiyuan Yang
>         Attachments: TEZ-3224.1.patch
>
>
> In VertexManager constructor, we create VertexManagerPlugin before initializing user payload. 
> {code:java}
> plugin = ReflectionUtils.createClazzInstance(pluginDesc.getClassName(),
>         new Class[] { VertexManagerPluginContext.class }, new Object[] { pluginContext });
>     payload = pluginDesc.getUserPayload();
> {code}
> Trying to access user payload in VertexManagerPlugin constructor will result in a NullPointerException.



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