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

FairScheduler's preemption cannot happen between sibling in some case

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 2.7.0
    • Fix Version/s: None
    • Component/s: fairscheduler
    • Labels:
      None

      Description

      Queue hierarchy described as below:

                        root
                     /         \
             queue-1          queue-2       
                /      \
      queue-1-1     queue-1-2
      

      Assume cluster resource is 100

      1. queue-1-1 and queue-2 has app. Each get 50 usage and 50 fairshare.
      2. When queue-1-2 is active, and it cause some new preemption request for fairshare 25.
      3. When preemption from root, it has possibility to find preemption candidate is queue-2. If so preemptContainerPreCheck for queue-2 return false because it's equal to its fairshare.
      4. Finally queue-1-2 will be waiting for resource release form queue-1-1 itself.

      What I expect here is that queue-1-2 preempt from queue-1-1.

        Attachments

        1. YARN-3405.01.patch
          37 kB
          Peng Zhang
        2. YARN-3405.02.patch
          40 kB
          Peng Zhang

          Issue Links

            Activity

              People

              • Assignee:
                peng.zhang Peng Zhang
                Reporter:
                peng.zhang Peng Zhang
              • Votes:
                0 Vote for this issue
                Watchers:
                20 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: