hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-6582) Missing null check in RpcProgramNfs3#read(XDR, SecurityHandler)
Date Tue, 12 Aug 2014 12:25:13 GMT

    [ https://issues.apache.org/jira/browse/HDFS-6582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14094016#comment-14094016
] 

Hudson commented on HDFS-6582:
------------------------------

SUCCESS: Integrated in Hadoop-Yarn-trunk #643 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk/643/])
HDFS-6582. Missing null check in RpcProgramNfs3#read(XDR, SecurityHandler). Contributed by
Abhiraj Butala (brandonli: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1617366)
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs-nfs/src/main/java/org/apache/hadoop/hdfs/nfs/nfs3/RpcProgramNfs3.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs-nfs/src/test/java/org/apache/hadoop/hdfs/nfs/nfs3/TestRpcProgramNfs3.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt


> Missing null check in RpcProgramNfs3#read(XDR, SecurityHandler)
> ---------------------------------------------------------------
>
>                 Key: HDFS-6582
>                 URL: https://issues.apache.org/jira/browse/HDFS-6582
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: nfs
>    Affects Versions: 2.2.0
>            Reporter: Ted Yu
>            Assignee: Abhiraj Butala
>            Priority: Minor
>             Fix For: 2.6.0
>
>         Attachments: HDFS-6582.patch
>
>
> Around line 691:
> {code}
>         FSDataInputStream fis = clientCache.getDfsInputStream(userName,
>             Nfs3Utils.getFileIdPath(handle));
>         try {
>           readCount = fis.read(offset, readbuffer, 0, count);
> {code}
> fis may be null, leading to NullPointerException



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message