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

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0
    • capacity scheduler
    • None
    • 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-001.patch
          4 kB
          Peter Bacsko
        2. YARN-10198-002.patch
          14 kB
          Peter Bacsko
        3. YARN-10198-003.patch
          14 kB
          Peter Bacsko

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            pbacsko Peter Bacsko
            pbacsko Peter Bacsko
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment