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

Avoid unnecessary QueueMappingEntity creations

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4.0, 3.3.1
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      In CS UserGroupMappingPlacementRule and AppNameMappingPlacementRule classes we create new instances of QueueMappingEntity class. In some cases we simply copy the already received class, so we just duplicate it, which is unnecessary since the class is immutable.

      This is just a minor improvement, probably doesn't have much impact, but still puts some unnecessary load on GC.

        Attachments

        1. YARN-10279.006.patch
          4 kB
          Hudáky Márton Gyula
        2. YARN-10279.005.patch
          4 kB
          Hudáky Márton Gyula
        3. YARN-10279.004.patch
          4 kB
          Hudáky Márton Gyula
        4. YARN-10279.003.patch
          4 kB
          Hudáky Márton Gyula
        5. YARN-10279.001.patch
          4 kB
          Hudáky Márton Gyula

          Issue Links

            Activity

              People

              • Assignee:
                mhudaky Hudáky Márton Gyula
                Reporter:
                shuzirra Gergely Pollak
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: