Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C5026174C7 for ; Thu, 5 Mar 2015 00:07:38 +0000 (UTC) Received: (qmail 49894 invoked by uid 500); 5 Mar 2015 00:07:38 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 49844 invoked by uid 500); 5 Mar 2015 00:07:38 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 49833 invoked by uid 99); 5 Mar 2015 00:07:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Mar 2015 00:07:38 +0000 Date: Thu, 5 Mar 2015 00:07:38 +0000 (UTC) From: "Jing Zhao (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-7826) Erasure Coding: Update INodeFile quota computation for striped blocks MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-7826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14347810#comment-14347810 ] Jing Zhao commented on HDFS-7826: --------------------------------- Some comments about the current patch: # Instead of defining a separate {{computeStripedFileSize}} method, we can add the striped block support directly into {{computeFileSize(boolean, boolean)}}. Note that {{getBlocks}} can handle both the contiguous and striped blocks. But for the last striped UC block, if usePreferredBlockSize4LastUcBlock is true, we may need to add {{(preferred block size) * (total number of blocks in the striped block group)}}. # For quota usage computation of striped blocks, we may need to add some new logic. For a m+k striped block (i.e., m data blocks and k parity blocks), its {{numBytes}} field, as well as its file size, should be based on the total size of the m data blocks. However, the quota usage should include both the data blocks and parity blocks. Since our current stripe chunk size is fixed (64KB), we should be able to compute this number based on {{m}}, {{k}}, and {{numBytes}}. > 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 > > > 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)