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

UGI getShortUserName does not need to search the Subject

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate 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

        1. HADOOP-14659.patch
          0.9 kB
          Daryn Sharp

        Activity

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

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment