[
https://issues.apache.org/jira/browse/HDFS-8281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jing Zhao updated HDFS-8281:
----------------------------
Attachment: HDFS-8281-HDFS-7285.002.patch
Thanks again for the comments, Zhe! Update the patch with some code refactoring
and extra unit tests.
bq. StripeRange can be moved to StripedBlockUtil. We can also consider (maybe
as a follow-on) consolidating it with ReadPortion.
I checked the current code and tried to use the Range class inside of
ReadPortion. But looks like the semantic of StripeRange's offset is different
from ReadPortion's offset: one is offset in the block group and the other is
the offset in the internal block. Considering the StripeRange is only used
inside of the DFSStripedInputStream and is coupled with the stripe buffer
logic, currently I still leave it inside of the DFSStripedInputStream as a
private internal class. But please let me know if you still want me to move it
to StripedBlockUitl.
bq. readOneStripe looks quite similar to fetchBlockByteRange
Yeah, I tried to do this refactoring and found that it required more work. I
will do this refactoring in a separate jira after HDFS-7678 is done.
> Erasure Coding: implement parallel stateful reading for striped layout
> ----------------------------------------------------------------------
>
> Key: HDFS-8281
> URL: https://issues.apache.org/jira/browse/HDFS-8281
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Reporter: Jing Zhao
> Assignee: Jing Zhao
> Attachments: HDFS-8281-HDFS-7285.001.patch,
> HDFS-8281-HDFS-7285.001.patch, HDFS-8281-HDFS-7285.002.patch,
> HDFS-8281.000.patch
>
>
> This jira aims to support parallel reading for stateful read in
> {{DFSStripedInputStream}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)