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

JniBasedUnixGroupsMapping#getGroupForUser can potentially leak memory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • trunk-win, 3.0.0-alpha1
    • None
    • native, security
    • None

    Description

      This method lazily initializes a static variable to contain an empty array of groups. If multiple threads call the method before the variable has been initialized, then there is potential for a race condition. This would cause multiple allocations of the array and leaked memory.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cnauroth Chris Nauroth
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated: