Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-6756

ContainerRequest#executionTypeRequest causes NPE

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 2.9.0, 3.0.0-beta1
    • None
    • None
    • Reviewed

    Description

      ContainerRequest#executionTypeRequest is initialized as null, which could cause below " execTypeReq.getExecutionType" unconditionally throw NPE.

        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);
      

      Attachments

        1. YARN-6756.01.patch
          0.9 kB
          Jian He
        2. YARN-6756.02.patch
          2 kB
          Jian He

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jianhe Jian He
            jianhe Jian He
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment