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

Code duplication in UserGroupMappingPlacementRule

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          Activity

            People

            • Assignee:
              pingsutw Kevin Su
              Reporter:
              snemeth Szilard Nemeth

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment