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

Zhe Zhang commented on HDFS-8499:
---------------------------------

Casting from {{BI}} to {{BIUC}} isn't actually an issue because the 
{{instanceof}} check is always used before casting.

In the next rev I plan to convert some {{BIUC}} methods as abstract and move 
the implementation to {{BIUCCongtiguous}}, based on whether the logic differs 
in contiguous and striped subclasses. [~jingzhao] I wonder if we should unify 
{{replicas}} in both subclasses to either list or array?

> Merge BlockInfoUnderConstruction into trunk
> -------------------------------------------
>
>                 Key: HDFS-8499
>                 URL: https://issues.apache.org/jira/browse/HDFS-8499
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: namenode
>    Affects Versions: 2.7.0
>            Reporter: Zhe Zhang
>            Assignee: Zhe Zhang
>         Attachments: HDFS-8499.00.patch
>
>
> In HDFS-7285 branch, the {{BlockInfoUnderConstruction}} interface provides a 
> common abstraction for striped and contiguous UC blocks. This JIRA aims to 
> merge it to trunk.



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

Reply via email to