Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-14659

UGI getShortUserName does not need to search the Subject

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0-alpha
    • 2.9.0, 3.0.0-beta1, 2.8.2
    • common
    • None
    • Reviewed

    Description

      UGI#getShortUserName searches the subject for the User instance. It's not cheap to iterate a synchronized set, copy matches into a new set, then iterating that set. The UGI ctor already set the User into a final field...

      Attachments

        Activity

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

          People

            daryn Daryn Sharp Assign to me
            daryn Daryn Sharp
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment