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

Avoid unnecessary QueueMappingEntity creations

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.4.0, 3.3.1
    • 3.4.0, 3.3.1
    • resourcemanager
    • None
    • 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.001.patch
          4 kB
          Hudáky Márton Gyula
        2. YARN-10279.003.patch
          4 kB
          Hudáky Márton Gyula
        3. YARN-10279.004.patch
          4 kB
          Hudáky Márton Gyula
        4. YARN-10279.005.patch
          4 kB
          Hudáky Márton Gyula
        5. YARN-10279.006.patch
          4 kB
          Hudáky Márton Gyula

        Issue Links

          Activity

            People

              mhudaky Hudáky Márton Gyula
              shuzirra Gergely Pollák
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: