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

FairScheduler: Set current capacity in addition to capacity

    XMLWordPrintableJSON

    Details

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

      Description

      Should use setCurrentCapacity instead of setCapacity to configure used resource capacity for FairScheduler.
      In function getQueueInfo of FSQueue.java, we call setCapacity twice with different parameters so the first call is overrode by the second call.
      queueInfo.setCapacity((float) getFairShare().getMemory() /
      scheduler.getClusterResource().getMemory());
      queueInfo.setCapacity((float) getResourceUsage().getMemory() /
      scheduler.getClusterResource().getMemory());
      We should change the second setCapacity call to setCurrentCapacity to configure the current used capacity.

        Attachments

        1. YARN-2315.patch
          1 kB
          zhihai xu
        2. YARN-2315.003.patch
          6 kB
          zhihai xu
        3. YARN-2315.002.patch
          6 kB
          zhihai xu
        4. YARN-2315.001.patch
          6 kB
          zhihai xu

          Activity

            People

            • Assignee:
              zxu zhihai xu
              Reporter:
              zxu zhihai xu
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: