You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Vinayakumar B (JIRA)" <ji...@apache.org> on 2016/03/15 10:43:35 UTC
[jira] [Deleted] (HDFS-10127) CLONE - Erasure Coding: fix the copy
constructor of BlockInfoStriped and BlockInfoContiguous
[ https://issues.apache.org/jira/browse/HDFS-10127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vinayakumar B deleted HDFS-10127:
---------------------------------
> CLONE - Erasure Coding: fix the copy constructor of BlockInfoStriped and BlockInfoContiguous
> --------------------------------------------------------------------------------------------
>
> Key: HDFS-10127
> URL: https://issues.apache.org/jira/browse/HDFS-10127
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Reporter: dragon
> Assignee: Vinayakumar B
>
> {code}
> BlockInfoStriped(BlockInfoStriped b) {
> this(b, b.getSchema());
> this.setBlockCollection(b.getBlockCollection());
> }
> {code}
> {code}
> protected BlockInfoContiguous(BlockInfoContiguous from) {
> this(from, from.getBlockCollection().getPreferredBlockReplication());
> this.triplets = new Object[from.triplets.length];
> this.setBlockCollection(from.getBlockCollection());
> }
> {code}
> We should define a copy constructor in the {{BlockInfo}}, and call it from these two {{subclass}}. I also notice a NullPointerException test failure of {{TestBlockInfo.testCopyConstructor}} in latest branch which is related to this.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)