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

Over-allocate node resource in async-scheduling mode of CapacityScheduler

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-alpha4, 2.9.1
    • Fix Version/s: 3.1.0, 2.10.0, 3.0.3
    • Component/s: capacityscheduler
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Currently in async-scheduling mode of CapacityScheduler, node resource may be over-allocated since node resource check is ignored.
      FiCaSchedulerApp#commonCheckContainerAllocation will check whether this node have enough available resource for this proposal and return check result (ture/false), but this result is ignored in CapacityScheduler#accept as below.

      commonCheckContainerAllocation(allocation, schedulerContainer);
      

      If FiCaSchedulerApp#commonCheckContainerAllocation returns false, CapacityScheduler#accept should also return false as below:

      if (!commonCheckContainerAllocation(allocation, schedulerContainer)) {
        return false;
      }
      

        Attachments

        1. YARN-7527-branch-2.002.patch
          6 kB
          Tao Yang
        2. YARN-7527-branch-2.001.patch
          6 kB
          Tao Yang
        3. YARN-7527.001.patch
          6 kB
          Tao Yang

          Activity

            People

            • Assignee:
              Tao Yang Tao Yang
              Reporter:
              Tao Yang Tao Yang
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: