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

SchedulerNode can use a few more cosmetic changes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.8.0
    • None
    • scheduler
    • None

    Description

      We have made some cosmetic changes to SchedulerNode recently. While working on YARN-4511, realized we could improve it a little more:

      1. Remove volatile variables - don't see the need for them being volatile
      2. Some methods end up doing very similar things, so consolidating them
      3. Renaming totalResource to capacity. YARN-4511 plans to add inflatedCapacity to include the un-utilized resources, and having two totals can be a little confusing.

      Attachments

        1. yarn-4808-2.patch
          15 kB
          Karthik Kambatla
        2. yarn-4808-1.patch
          12 kB
          Karthik Kambatla

        Activity

          People

            kasha Karthik Kambatla
            kasha Karthik Kambatla
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: