Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha1, 2.7.5
    • Component/s: None
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      UGI#getGroups and its usage is inefficient. The list is unnecessarily converted to multiple collections.

      For every invocation, the List<String> from the group provider is converted into a LinkedHashSet<String> (to de-dup), back to a String[]. Then callers testing for group membership convert back to a List<String>. This should be done once to reduce allocations.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: