[
https://issues.apache.org/jira/browse/HDFS-8059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14581864#comment-14581864
]
Walter Su commented on HDFS-8059:
---------------------------------
Approach 1:Keep (dataUnits, parityUnits, cellSize) as a long type field(16byte
empty, 8byte, 8byte, 32byte) of BlockInfoStriped.
Approach 2:Keep a treeMap mapping zone dir inode id to {{ErasureCodingZone}},
like EncryptionZoneManager. And keep the inode id in BlockInfoStriped as a key
to treeMap.
They both require 8 bytes. I prefer approach 1 because it’s more decoupled. Do
you have better ideas?
> Erasure coding: move dataBlockNum and parityBlockNum from BlockInfoStriped to
> INodeFile
> ---------------------------------------------------------------------------------------
>
> Key: HDFS-8059
> URL: https://issues.apache.org/jira/browse/HDFS-8059
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Affects Versions: HDFS-7285
> Reporter: Yi Liu
> Assignee: Yi Liu
> Attachments: HDFS-8059.001.patch
>
>
> Move {{dataBlockNum}} and {{parityBlockNum}} from BlockInfoStriped to
> INodeFile, and store them in {{FileWithStripedBlocksFeature}}.
> Ideally these two nums are the same for all striped blocks in a file, and
> store them in BlockInfoStriped will waste NN memory.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)