hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadoop QA (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-1026) Quota checks fail for small files and quotas
Date Fri, 06 Apr 2012 15:03:25 GMT

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

Hadoop QA commented on HDFS-1026:

+1 overall.  Here are the results of testing the latest attachment 
  against trunk revision .

    +1 @author.  The patch does not contain any @author tags.

    +0 tests included.  The patch appears to be a documentation patch that doesn't require

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    +1 eclipse:eclipse.  The patch built with eclipse:eclipse.

    +1 findbugs.  The patch does not introduce any new Findbugs (version 1.3.9) warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit

    +1 core tests.  The patch passed unit tests in .

    +1 contrib tests.  The patch passed contrib unit tests.

Test results: https://builds.apache.org/job/PreCommit-HDFS-Build/2212//testReport/
Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/2212//console

This message is automatically generated.
> Quota checks fail for small files and quotas
> --------------------------------------------
>                 Key: HDFS-1026
>                 URL: https://issues.apache.org/jira/browse/HDFS-1026
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: documentation, name-node
>    Affects Versions: 0.20.1, 0.20.2, 0.20.3, 0.21.0, 0.22.0
>            Reporter: Eli Collins
>              Labels: newbie
>         Attachments: HDFS-1026.pacth
> If a directory has a quota less than blockSize * numReplicas then you can't add a file
to it, even if the file size is less than the quota. This is because FSDirectory#addBlock
updates the count assuming at least one block is written in full. We don't know how much of
the block will be written when addBlock is called and supporting such small quotas is not
important so perhaps we should document this and log an error message instead of making small
(blockSize * numReplicas) quotas work.
> {code}
> // check quota limits and updated space consumed
> updateCount(inodes, inodes.length-1, 0, fileINode.getPreferredBlockSize()*fileINode.getReplication(),
> {code}
> You can reproduce with the following commands:
> {code}
> $ dd if=/dev/zero of=temp bs=1000 count=64
> $ hadoop fs -mkdir /user/eli/dir
> $ hdfs dfsadmin -setSpaceQuota 191M /user/eli/dir
> $ hadoop fs -put temp /user/eli/dir  # Causes DSQuotaExceededException
> {code}

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message