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

Optimize UGI group lookups

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.8.0, 3.0.0-alpha1, 2.7.5
    • None
    • None
    • 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

        1. HADOOP-13442.patch
          14 kB
          Daryn Sharp

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: