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-7744) Fix potential NPE in DFSInputStream after setDropBehind or setReadahead is called
Date Tue, 10 Feb 2015 15:26:20 GMT

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

Hudson commented on HDFS-7744:
------------------------------

FAILURE: Integrated in Hadoop-Mapreduce-trunk #2051 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2051/])
HDFS-7744. Fix potential NPE in DFSInputStream after setDropBehind or setReadahead is called
(cmccabe) (cmccabe: rev a9dc5cd7069f721e8c55794b877026ba02537167)
* hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSInputStream.java
* hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestCachingStrategy.java


> Fix potential NPE in DFSInputStream after setDropBehind or setReadahead is called
> ---------------------------------------------------------------------------------
>
>                 Key: HDFS-7744
>                 URL: https://issues.apache.org/jira/browse/HDFS-7744
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: dfsclient
>    Affects Versions: 2.6.0
>            Reporter: Colin Patrick McCabe
>            Assignee: Colin Patrick McCabe
>             Fix For: 2.7.0
>
>         Attachments: HDFS-7744.001.patch, HDFS-7744.002.patch
>
>
> Fix a potential NPE in DFSInputStream after setDropBehind or setReadahead is called.
 These functions clear the {{blockReader}}, but don't set {{blockEnd}} to -1, which could
lead to {{DFSInputStream#seek}} attempting to derference {{blockReader}} even though it is
{{null}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message