Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-5195

Prevent passing null pointer to mlock and munlock.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • HDFS-4949
    • HDFS-4949
    • datanode
    • None
    • Reviewed

    Description

      According to JNI documentation, it is optional for the JVM to support the GetDirectBufferAddress function. If unsupported, then the function will return null. This is probably a very rare thing, but let's be defensive by checking the return value for null and throwing an exception instead of passing null down to mlock and munlock.

      Attachments

        1. HDFS-5195.1.patch
          2 kB
          Chris Nauroth
        2. HDFS-5195.2.patch
          2 kB
          Chris Nauroth

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: