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

UGI getShortUserName does not need to search the Subject

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-alpha
    • Fix Version/s: 2.9.0, 3.0.0-beta1, 2.8.2
    • Component/s: common
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: