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

Jing Zhao updated HDFS-8760:
----------------------------
    Attachment: HDFS-8760.000.patch

Initial patch. Now pread and stateful read implementation has less difference 
and I will make further changes to consolidate the code.

As mentioned by [~walter.k.su] in HDFS-8433 we still need to fix the retry 
logic in the StripedInputStream. I will leave this part to Walter since he 
already has fix for it.

> Erasure Coding: reuse BlockReader when reading the same block in pread
> ----------------------------------------------------------------------
>
>                 Key: HDFS-8760
>                 URL: https://issues.apache.org/jira/browse/HDFS-8760
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Jing Zhao
>            Assignee: Jing Zhao
>         Attachments: HDFS-8760.000.patch
>
>
> Currently in pread, we create a new block reader for each aligned stripe even 
> though these stripes belong to the same block. It's better to reuse them to 
> avoid unnecessary block reader creation overhead. This can also avoid reading 
> from the same bad DataNode.



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

Reply via email to