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

Haohui Mai commented on HDFS-8801:
----------------------------------

The current approach requires exposing 
{{setGenerationStampAndVerifyReplicas()}} and {{commitBlock()}} into the 
{{BlockInfo}} class. It's not ideal and it requires further refactoring, but I 
think given the scope of the changes it's okay to address it in a separate jira.

+1.

> Convert BlockInfoUnderConstruction as a feature
> -----------------------------------------------
>
>                 Key: HDFS-8801
>                 URL: https://issues.apache.org/jira/browse/HDFS-8801
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: namenode
>            Reporter: Zhe Zhang
>            Assignee: Jing Zhao
>         Attachments: HDFS-8801.000.patch
>
>
> Per discussion under HDFS-8499, with the erasure coding feature, there will 
> be 4 types of {{BlockInfo}} forming a multi-inheritance: 
> {{complete+contiguous}}, {{complete+striping}}, {{UC+contiguous}}, 
> {{UC+striped}}. We had the same challenge with {{INodeFile}} and the solution 
> was building feature classes like {{FileUnderConstructionFeature}}. This JIRA 
> aims to implement the same idea on {{BlockInfo}}. 



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

Reply via email to