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

FairScheduler: Negative vcore for resource needed to preempt

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.8.0
    • Fix Version/s: 2.8.0
    • Component/s: fairscheduler
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Both old preemption code (2.8 and before) and new preemption code could have negative vcores while calculating resources needed to preempt.

      For old preemption, you can find following messages in RM logs:

      Should preempt <memory:2048, vCores:-2> 
      

      The related code is in method resourceDeficit().

      For new preemption code, there are no messages in RM logs, the related code is in method fairShareStarvation().

      The negative value isn't only a display issue, but also may cause missing necessary preemption.

        Attachments

        1. YARN-6175.001.patch
          8 kB
          Yufei Gu
        2. YARN-6175.branch-2.8.002.patch
          4 kB
          Yufei Gu
        3. YARN-6175.branch-2.8.003.patch
          4 kB
          Yufei Gu

          Issue Links

            Activity

              People

              • Assignee:
                yufeigu Yufei Gu
                Reporter:
                yufeigu Yufei Gu
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: