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

Masatake Iwasaki updated HDFS-8463:
-----------------------------------
    Attachment: HDFS-8463.001.patch

I think there should be guard because {{seekToNewSource}} is exposed to public 
via FSDataInputStream.

I attached 001. It keeps current behaviour and just throws IOException instead 
of NullPointerException when {{seekToNewSource}} is called without 
pre-condition satisfied.

> Calling DFSInputStream.seekToNewSource just after stream creation causes  
> NullPointerException
> ----------------------------------------------------------------------------------------------
>
>                 Key: HDFS-8463
>                 URL: https://issues.apache.org/jira/browse/HDFS-8463
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Masatake Iwasaki
>            Assignee: Masatake Iwasaki
>            Priority: Minor
>         Attachments: HDFS-8463.001.patch
>
>




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

Reply via email to