[ 
https://issues.apache.org/jira/browse/HDFS-8499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zhe Zhang updated HDFS-8499:
----------------------------
    Attachment: HDFS-8499.01.patch

Updating the patch to move {{addStorage}}, {{removeStorage}}, {{numNodes}}, 
{{replaceBlock}} to {{BlockInfoUC}} per above discussion.

I went through {{BlockInfoStripeUC}} in HDFS-7285 branch again. If we unify 
{{replicas}} (or create some wrapper functions that work on both array and 
list), then we only need to implement these 3 methods separately in 
{{BlockInfoUCStriped}} and {{BlockInfoUCContiguous}}:
# {{setExpectedLocations}} -- the striped version needs to create block IDs for 
internal blocks
# {{getTruncateBlock}} and {{setTruncateBlock}} -- truncate not supported under 
striping yet

For now these 3 methods are left in {{BlockInfoUC}} to simplify the patch. 

> 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, HDFS-8499.01.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