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

John Zhuge commented on HDFS-12318:
-----------------------------------

[~legend] Great catch and thanks for the patch. I will take a look.

BTW, could you add a unit test? I know unit test is tougher to write than the 
fix itself, but it will make sure nobody will break your fix in the future.

> Fix IOException condition for openInfo in DFSInputStream
> --------------------------------------------------------
>
>                 Key: HDFS-12318
>                 URL: https://issues.apache.org/jira/browse/HDFS-12318
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 3.0.0-beta1
>            Reporter: legend
>            Assignee: legend
>         Attachments: HDFS-12318.patch
>
>
> when retriesForLastBlockLength == 0 and lastBlockBeingWrittenLength != -1, 
> "openInfo" successfully obtains the last blcok locations, and the function 
> still throws IOException.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to