hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dragon (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-10040) CLONE - Erasure coding: Fix file quota change when we complete/commit the striped blocks
Date Tue, 15 Mar 2016 08:15:37 GMT
dragon created HDFS-10040:
-----------------------------

             Summary: CLONE - Erasure coding: Fix file quota change when we complete/commit
the striped blocks
                 Key: HDFS-10040
                 URL: https://issues.apache.org/jira/browse/HDFS-10040
             Project: Hadoop HDFS
          Issue Type: Sub-task
    Affects Versions: HDFS-7285
            Reporter: dragon
            Assignee: Takuya Fukudome
             Fix For: HDFS-7285


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)

Mime
View raw message