Details
Description
This JIRA is to use BlockInfo[] blocks for both striped and contiguous blocks in INodeFile.
Currently FileWithStripedBlocksFeature keeps separate list for striped blocks, and the methods there duplicate with those in INodeFile, and current code need to judge isStriped then do different things. Also if file is striped, the blocks in INodeFile occupy a reference memory space.
These are not necessary, and we can use the same blocks to make code more clear.
I keep FileWithStripedBlocksFeature as empty for follow use: I will file a new JIRA to move dataBlockNum and parityBlockNum from BlockInfoStriped to INodeFile, since ideally they are the same for all striped blocks in a file, and store them in block will waste NN memory.
Attachments
Attachments
Issue Links
- is required by
-
HDFS-8059 Erasure coding: revisit how to store EC schema and cellSize in NameNode
- Resolved