[
https://issues.apache.org/jira/browse/HADOOP-5492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12682442#action_12682442
]
Raghu Angadi commented on HADOOP-5492:
--------------------------------------
> Empty file of size 0 is created when QuotaExceed exception occurs while
> copying a file.
clarification : Neither the exception nor the operation that results in the
exception creates a file. The file already exists.
In this case, copyFromLocal does '{{create(file); write(file, data);
close(file);}}', and write() operation throws this exception. As expected, the
created file exists on HDFS. How copyFromLocal deals with such failed copies
(and related files) should really be part of implementation of the shell
command.
> Quota exceed exception creates file of size 0
> ---------------------------------------------
>
> Key: HADOOP-5492
> URL: https://issues.apache.org/jira/browse/HADOOP-5492
> Project: Hadoop Core
> Issue Type: Bug
> Components: dfs
> Affects Versions: 0.18.3
> 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.