hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhe Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-8453) Erasure coding: properly assign start offset for internal blocks in a block group
Date Tue, 26 May 2015 03:58:18 GMT

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

Zhe Zhang commented on HDFS-8453:
---------------------------------

Moving initial description as a comment to avoid confusion:
{quote}
{{LocatedBlock#offset}} should indicate the "offset of the first byte of the block in the
file". In a striped block group, we should properly assign this {{offset}} for internal blocks,
so each internal block can be identified from a given offset.

My current plan is to keep using {{bg.getStartOffset() + idxInBlockGroup * cellSize}} as the
start offset for data blocks. For parity blocks, use {{-1 * (bg.getStartOffset() + idxInBlockGroup
* cellSize)}}. 
{quote}

> Erasure coding: properly assign start offset for internal blocks in a block group
> ---------------------------------------------------------------------------------
>
>                 Key: HDFS-8453
>                 URL: https://issues.apache.org/jira/browse/HDFS-8453
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Zhe Zhang
>            Assignee: Zhe Zhang
>         Attachments: HDFS-8453-HDFS-7285.00.patch
>
>




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

Mime
View raw message