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

ContainerRequest#executionTypeRequest causes NPE

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.0, 3.0.0-beta1
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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.02.patch
          2 kB
          Jian He
        2. YARN-6756.01.patch
          0.9 kB
          Jian He

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: