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

Kai Sasaki commented on HDFS-7826:
----------------------------------

Thank you so much for gracious advice but I have a question.
I assume `getNumBytes` returns actual data size even in striped block case. And 
each data block size and each parity block size is equal.
What I mean is here.
(getNumBytes() / (dataBlockNum * 64KB) represents the number of chunks in a 
data block.
And this number is always same to the number of parity blocks. But is it wrong? 
 If these numbers are same, `getNumBytes` always returns the actual size
whenever data stripes are full or not. 

> Erasure Coding: Update INodeFile quota computation for striped blocks
> ---------------------------------------------------------------------
>
>                 Key: HDFS-7826
>                 URL: https://issues.apache.org/jira/browse/HDFS-7826
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Jing Zhao
>            Assignee: Kai Sasaki
>         Attachments: HDFS-7826.1.patch, HDFS-7826.2.patch
>
>
> Currently INodeFile's quota computation only considers contiguous blocks 
> (i.e., {{INodeFile#blocks}}). We need to update it to support striped blocks.



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

Reply via email to