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

Code duplication in UserGroupMappingPlacementRule

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0, 3.2.2, 3.1.4
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: