You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Chris Nauroth (JIRA)" <ji...@apache.org> on 2013/09/13 22:49:51 UTC
[jira] [Resolved] (HDFS-5195) Prevent passing null pointer to mlock
and munlock.
[ https://issues.apache.org/jira/browse/HDFS-5195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Nauroth resolved HDFS-5195.
---------------------------------
Resolution: Fixed
Fix Version/s: HDFS-4949
Hadoop Flags: Reviewed
I committed this to the HDFS-4949 branch. Thanks for the review, Colin.
> Prevent passing null pointer to mlock and munlock.
> --------------------------------------------------
>
> Key: HDFS-5195
> URL: https://issues.apache.org/jira/browse/HDFS-5195
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: datanode
> Affects Versions: HDFS-4949
> Reporter: Chris Nauroth
> Assignee: Chris Nauroth
> Fix For: HDFS-4949
>
> Attachments: HDFS-5195.1.patch, HDFS-5195.2.patch
>
>
> 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}}.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira