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

FairScheduler: Negative vcore for resource needed to preempt

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.8.0
    • 2.8.0
    • fairscheduler
    • None
    • 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.branch-2.8.003.patch
          4 kB
          Yufei Gu
        2. YARN-6175.branch-2.8.002.patch
          4 kB
          Yufei Gu
        3. YARN-6175.001.patch
          8 kB
          Yufei Gu

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            yufeigu Yufei Gu
            yufeigu Yufei Gu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment