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

Kai Zheng commented on HDFS-8494:
---------------------------------

Just had an off-line discussion with Vinay about the above question and sort 
something out. We should avoid relying on cellSize during image loading phase. 
For the code in question (used by getFileStatus), it's actually used in two 
places: FSImageHandler for Web HDFS, and a test 
TestOfflineImageViewerWithStripedBlocks. For the first, we can get the zone 
info anyway since it's not really called during startup; the second, we can 
change the test to pass the cellSize value (used by the test).

Thanks Vinay for the discussion. Kai please let know if it works or not.

> Remove hard-coded chunk size in favor of ECZone
> -----------------------------------------------
>
>                 Key: HDFS-8494
>                 URL: https://issues.apache.org/jira/browse/HDFS-8494
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>    Affects Versions: HDFS-7285
>            Reporter: Kai Sasaki
>            Assignee: Kai Sasaki
>             Fix For: HDFS-7285
>
>         Attachments: HDFS-8494-HDFS-7285-01.patch
>
>
> It is necessary to remove hard-coded values inside NameNode configured in 
> {{HdfsConstants}}. In this JIRA, we can remove {{chunkSize}} gracefully in 
> favor of HDFS-8375.
> Because {{cellSize}} is now originally stored only in {{ErasureCodingZone}}, 
> {{BlockInfoStriped}} can receive {{ErasureCodingZone}} instead of 
> {{ECSchema}} when its initialization.



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

Reply via email to