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

JniBasedUnixGroupsMapping: fix some crash bugs

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.4-alpha
    • Fix Version/s: 2.1.0-beta
    • Component/s: native
    • Labels:
      None

      Description

      JniBasedUnixGroupsMapping has some issues.

      • sometimes on error paths variables are freed prior to being initialized
      • re-allocate buffers less frequently (can reuse the same buffer for multiple calls to getgrnam)
      • allow non-reentrant functions to be used, to work around client bugs
      • don't throw IOException from JNI functions if the JNI functions do not declare this checked exception.
      • don't bail out if only one group name among all the ones associated with a user can't be looked up.

        Attachments

        1. HDFS-4640.002.patch
          32 kB
          Colin P. McCabe
        2. HADOOP-9439.001.patch
          35 kB
          Colin P. McCabe
        3. HADOOP-9439.003.patch
          37 kB
          Colin P. McCabe
        4. HADOOP-9439.005.patch
          34 kB
          Colin P. McCabe
        5. HADOOP-9439.006.patch
          34 kB
          Colin P. McCabe
        6. HADOOP-9439.007.patch
          34 kB
          Colin P. McCabe
        7. HADOOP-9439.008.patch
          36 kB
          Chris Nauroth

          Issue Links

            Activity

              People

              • Assignee:
                cmccabe Colin P. McCabe
                Reporter:
                cmccabe Colin P. McCabe
              • Votes:
                0 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: