[
https://issues.apache.org/jira/browse/HDFS-7949?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14394100#comment-14394100
]
Zhe Zhang commented on HDFS-7949:
---------------------------------
Thanks Rakesh for working on this!
The below calculation looks quite complex. Could you explain a little more? Is
it consistent with how file size is calculated in other places?
{code}
+ size += ((p.getBlock().getNumBytes() - 1)
+ / (p.getDataBlockNum() * chunkSize) + 1)
+ * chunkSize * p.getParityBlockNum() + p.getBlock().getNumBytes();
{code}
Would also be better to add a simple test for the change.
> WebImageViewer need support file size calculation with striped blocks
> ---------------------------------------------------------------------
>
> Key: HDFS-7949
> URL: https://issues.apache.org/jira/browse/HDFS-7949
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Reporter: Hui Zheng
> Assignee: Rakesh R
> Priority: Minor
> Attachments: HDFS-7949-001.patch
>
>
> The file size calculation should be changed when the blocks of the file are
> striped in WebImageViewer.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)