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 F28FA18AF1 for ; Wed, 30 Sep 2015 16:39:41 +0000 (UTC) Received: (qmail 29623 invoked by uid 500); 30 Sep 2015 16:39:01 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 29563 invoked by uid 500); 30 Sep 2015 16:39:01 -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 29475 invoked by uid 99); 30 Sep 2015 16:39:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Sep 2015 16:39:01 +0000 Date: Wed, 30 Sep 2015 16:39:01 +0000 (UTC) From: "Hudson (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-8195) Erasure coding: Fix file quota change when we complete/commit the 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-8195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14937599#comment-14937599 ] Hudson commented on HDFS-8195: ------------------------------ FAILURE: Integrated in Hadoop-Yarn-trunk #1203 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk/1203/]) HDFS-8195. Erasure coding: Fix file quota change when we complete/commit (zhezhang: rev 9798065cbb5cf5de94fe8e17ac22388f70e12dd6) * hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestQuotaWithStripedBlocks.java * hadoop-hdfs-project/hadoop-hdfs/CHANGES-HDFS-EC-7285.txt * hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java * hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirectory.java > Erasure coding: Fix file quota change when we complete/commit the striped blocks > -------------------------------------------------------------------------------- > > Key: HDFS-8195 > URL: https://issues.apache.org/jira/browse/HDFS-8195 > Project: Hadoop HDFS > Issue Type: Sub-task > Affects Versions: HDFS-7285 > Reporter: Takuya Fukudome > Assignee: Takuya Fukudome > Fix For: HDFS-7285 > > Attachments: HDFS-8195-HDFS-7285.2.patch, HDFS-8195-HDFS-7285.3.patch, HDFS-8195.1.patch > > > Fix file quota change when converting a file with striped blocks from complete/under-construction to under-construction/complete state. When we add a new block (FSDirectory#addBlock) we update the quota using the full block size (since we do not know how much data the user will write to > the new block), and when we complete/commit the block, the quota is updated based on the block's real size (FSNamesystem#commitOrCompleteLastBlock). Currently these two places only support contiguous blocks (using INodeFile#getPreferredBlockSize as the full block size). We should update them for striped blocks. -- This message was sent by Atlassian JIRA (v6.3.4#6332)