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

Code duplication in UserGroupMappingPlacementRule

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0, 3.2.2, 3.1.4
    • Component/s: None
    • Labels:
    • Hadoop Flags:
      Reviewed

      Description

      The methods org.apache.hadoop.yarn.server.resourcemanager.placement.UserGroupMappingPlacementRule#validateParentQueue and org.apache.hadoop.yarn.server.resourcemanager.placement.QueuePlacementRuleUtils#validateQueueMappingUnderParentQueue are exactly the same.
      In these 2 classes, we also have a duplicate method named "extractQueuePath".

      We need to extract these to a common method and delete one of these dupes.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pingsutw Kevin Su
                Reporter:
                snemeth Szilard Nemeth
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: