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 "Colin Patrick McCabe (JIRA)" <ji...@apache.org> on 2015/02/06 21:38:34 UTC

[jira] [Updated] (HDFS-7744) Fix potential NPE in DFSInputStream after setDropBehind or setReadahead is called

     [ https://issues.apache.org/jira/browse/HDFS-7744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Colin Patrick McCabe updated HDFS-7744:
---------------------------------------
    Attachment: HDFS-7744.001.patch

> 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
>         Attachments: HDFS-7744.001.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)