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

Rakesh R commented on HDFS-7949:
--------------------------------

Thanks [~zhz] for the review. Attached another patch where computed the file 
size = datablkbytes + parityblksize.
IIUC {{BlockInfoStriped}} represents blockgroup and getNumBytes() method will 
return the total of actual data block size. In the new patch, I'm computing the 
parityblksize and multipled with the number of parity blks, does this makes 
sense?

> 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, HDFS-7949-002.patch, 
> HDFS-7949-003.patch, HDFS-7949-004.patch, HDFS-7949-005.patch, 
> HDFS-7949-006.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)

Reply via email to