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

FairScheduler: Incorrect threshold check for preemption

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

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.5.0
    • None
    • None
    • Reviewed

    Description

      private boolean shouldAttemptPreemption() {
        if (preemptionEnabled) {
          return (preemptionUtilizationThreshold < Math.max(
              (float) rootMetrics.getAvailableMB() / clusterResource.getMemory(),
              (float) rootMetrics.getAvailableVirtualCores() /
                  clusterResource.getVirtualCores()));
        }
        return false;
      }
      

      preemptionUtilizationThreshould should be compared with allocatedResource instead of availableResource.

      Attachments

        1. YARN-2155.patch
          3 kB
          Wei Yan

        Issue Links

        Activity

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

          People

            ywskycn Wei Yan
            ywskycn Wei Yan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment