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

[managedParent].%primary_group mapping rule doesn't work after YARN-9868

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0
    • Component/s: capacity scheduler
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      YARN-9868 introduced an unnecessary check if we have the following placement rule:

      [managedParentQueue].%primary_group

      Here, %primary_group is expected to be created if it doesn't exist. However, there is this validation code which is not necessary:

                } else if (mapping.getQueue().equals(PRIMARY_GROUP_MAPPING)) {
                  if (this.queueManager
                      .getQueue(groups.getGroups(user).get(0)) != null) {
                    return getPlacementContext(mapping,
                        groups.getGroups(user).get(0));
                  } else {
                    return null;
                  }
      

      We should revert this part to the original version:

                } else if (mapping.queue.equals(PRIMARY_GROUP_MAPPING)) {
                  return getPlacementContext(mapping, groups.getGroups(user).get(0));
              }
      

        Attachments

        1. YARN-10198-003.patch
          14 kB
          Peter Bacsko
        2. YARN-10198-002.patch
          14 kB
          Peter Bacsko
        3. YARN-10198-001.patch
          4 kB
          Peter Bacsko

        Issue Links

          Activity

            People

            • Assignee:
              pbacsko Peter Bacsko
              Reporter:
              pbacsko Peter Bacsko

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment