Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-7151

RMContainerAllocator#handleJobPriorityChange expects application_priority always

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.1.2, 3.3.0, 3.2.1
    • None
    • None

    Description

      As per yarn_service.proto AllocateResponseProto application_priority is optional field.
      But RMContainerAllocator#handleJobPriorityChange expects to have application priority always in response which is not mandatory.

        private void handleJobPriorityChange(AllocateResponse response) {
          Priority priorityFromResponse = Priority.newInstance(response
              .getApplicationPriority().getPriority());
      
          // Update the job priority to Job directly.
          getJob().setJobPriority(priorityFromResponse);
        }
      
      message AllocateResponseProto {
      ..
        optional hadoop.common.TokenProto am_rm_token = 12;
        optional PriorityProto application_priority = 13;
        optional CollectorInfoProto collector_info = 14;
      ..
      }
      

      Attachments

        1. MAPREDUCE-7151-001.patch
          3 kB
          Bilwa S T
        2. MAPREDUCE-7151-002.patch
          3 kB
          Bilwa S T

        Issue Links

          Activity

            People

              BilwaST Bilwa S T
              bibinchundatt Bibin Chundatt
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: