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

Tsz Wo Nicholas Sze commented on HDFS-172:
------------------------------------------

I believe quota exceed when copying a file could result a partial file in 
general, not necessarily a zero size file.  For example, suppose quote for a 
dir is 100MB and block size is 64MB.  Then copying a 200MB file to dir (with 
replication = 1) will result in quota exceed exception when writing the second 
block.  The file written to dir will only have 64MB.

The summary of this JIRA should be revised to "Quota exceed exception results 
partial created files."  However, this seems a common behavior but not a bug.  
No?

> Quota exceed exception creates file of size 0
> ---------------------------------------------
>
>                 Key: HDFS-172
>                 URL: https://issues.apache.org/jira/browse/HDFS-172
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Ravi Phulari
>
> Empty file of size 0 is created when QuotaExceed exception occurs while 
> copying a file. This file is created with the same name of which file copy is 
> tried .
> I.E if operation 
> Hadoop fs -copyFromLocal testFile1 /testDir   
> Fails due to quota exceed exception then testFile1 of size 0 is created in 
> testDir on HDFS.
> Steps to verify 
> 1) Create testDir and apply space quota of 16kb
> 2) Copy file say testFile of size greater than 16kb from local file system
> 3) You should see QuotaException error 
> 4) testFile of size 0 is created in testDir which is not expected .



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to