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

FairScheduler: Incorrect threshold check for preemption

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: