[ https://issues.apache.org/jira/browse/YARN-6756?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16070675#comment-16070675 ]
Jian He edited comment on YARN-6756 at 6/30/17 8:36 PM: -------------------------------------------------------- I actually run into NPE when I use the builder API, if I caller doesn't explicitly call executionTypeRequest() method to set a dummy object, it always throws NPE, I think we need to initialize it with a default object was (Author: jianhe): I actually run into NPE when I use the builder API, if I caller doesn't call executionTypeRequest() method to set a dummy object, it always throws NPE, I think we need to initialize it with a defualt object > ContainerRequest#executionTypeRequest causes NPE > ------------------------------------------------ > > Key: YARN-6756 > URL: https://issues.apache.org/jira/browse/YARN-6756 > Project: Hadoop YARN > Issue Type: Bug > Reporter: Jian He > Priority: Critical > > ContainerRequest#executionTypeRequest is initialized as null, which could > cause below " execTypeReq.getExecutionType" unconditionally throw NPE. > {code} > ResourceRequestInfo addResourceRequest(Long allocationRequestId, > Priority priority, String resourceName, ExecutionTypeRequest > execTypeReq, > Resource capability, T req, boolean relaxLocality, > String labelExpression) { > ResourceRequestInfo resourceRequestInfo = get(priority, resourceName, > execTypeReq.getExecutionType(), capability); > {code} -- 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