[
https://issues.apache.org/jira/browse/HDFS-8489?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Zhe Zhang updated HDFS-8489:
----------------------------
Initial patch with the following changes:
# Converts {{BlockInfo}} to abstract class
# Merge {{BlockInfoContiguous}} from HDFS-7285 branch
# Changes {{BlockInfoContiguousUnderConstruction}} to subclass
{{BlockInfoContiguous}} instead of {{BlockInfo}}
# Changes a few places which initiate a {{BlockInfo}} to initiate a
{{BlockInfoContiguous}} instead. The most important one is
{{FSDirWriteFileOp#addBlock}}. Others include fsimage, edit log operations, and
tests.
# It is a little tricky to handle the copy constructor {{protected
BlockInfoContiguous(BlockInfoContiguous from)}}. The patch simply uses type
casting and we can brainstorm for a better idea.
> Subclass BlockInfo to represent contiguous blocks
> -------------------------------------------------
>
> Key: HDFS-8489
> URL: https://issues.apache.org/jira/browse/HDFS-8489
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: namenode
> Affects Versions: 2.7.0
> Reporter: Zhe Zhang
> Assignee: Zhe Zhang
>
> As second step of the cleanup, we should make {{BlockInfo}} an abstract class
> and merge the subclass {{BlockInfoContiguous}} from HDFS-7285 into trunk. The
> patch should clearly separate where to use the abstract class versus the
> subclass.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)