You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Kai Zheng (JIRA)" <ji...@apache.org> on 2015/05/04 03:59:06 UTC

[jira] [Commented] (HADOOP-11908) Erasure coding: Should be able to encode part of parity blocks.

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

Kai Zheng commented on HADOOP-11908:
------------------------------------

Hi [~hitliuyi],

Thanks for the good input. Yes it's a good option to recover part of parity blocks via calling raw encoder API, as I thought and planed before. In HADOOP-11847 it was allowed to decode parity blocks as data blocks in raw decoder, and test cases were added as well. Would you check with that and see if it works? Thanks.

> Erasure coding: Should be able to encode part of parity blocks.
> ---------------------------------------------------------------
>
>                 Key: HADOOP-11908
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11908
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: io
>            Reporter: Yi Liu
>            Assignee: Kai Zheng
>
> {code}
> public void encode(ByteBuffer[] inputs, ByteBuffer[] outputs);
> {code}
> Currently when we do encode, the outputs are all parity blocks, we should be able to encode part of parity blocks. 
> This is required when we do datanode striped block recovery, if one or more parity blocks are missed, we need to do encode to recovery them. Only encode part of parity blocks should be more efficient than all.



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