You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "meng gong (JIRA)" <ji...@apache.org> on 2012/11/16 07:10:11 UTC
[jira] [Commented] (HADOOP-9051) “ant test” will build failed for trying to delete an non-existent file
[ https://issues.apache.org/jira/browse/HADOOP-9051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13498625#comment-13498625 ]
meng gong commented on HADOOP-9051:
-----------------------------------
One kind of solution is following:
--- a/build.xml
+++ b/build.xml
@@ -1054,7 +1054,7 @@
<delete file="${test.build.dir}/testsfailed"/>
<delete dir="@{test.dir}/data" />
<mkdir dir="@{test.dir}/data" />
- <delete dir="@{test.dir}/logs" />
+ <delete dir="@{test.dir}/logs" quiet="true"/>
<mkdir dir="@{test.dir}/logs" />
<copy file="${test.src.dir}/hadoop-policy.xml"
todir="@{test.dir}/extraconf" />
For the marco-test-runner is just want to delete the logs folder and rebuild a new one.
If the specified file or directory does not exist, do not display a diagnostic message.
> “ant test” will build failed for trying to delete an non-existent file
> -----------------------------------------------------------------------
>
> Key: HADOOP-9051
> URL: https://issues.apache.org/jira/browse/HADOOP-9051
> Project: Hadoop Common
> Issue Type: Test
> Components: test
> Affects Versions: 1.0.0
> Environment: OS: Ubuntu 10.04; forrest version 0.8; findbugs version 2.0.1; ant version 1.8.1
> Reporter: meng gong
> Priority: Minor
> Labels: test
> Fix For: 1.0.0
>
>
> Run "ant test" on branch-1 of hadoop-common.
> When the test process reach "test-core-excluding-commit-and-smoke"
> It will invoke the "macro-test-runner" to clear and rebuild the test environment.
> Then the ant task command <delete dir="@{test.dir}/logs" />
> failed for trying to delete an non-existent file.
> following is the test result logs:
> test-core-excluding-commit-and-smoke:
> [delete] Deleting: /home/jdu/bdc/hadoop-topology-branch1-new/hadoop-common/build/test/testsfailed
> [delete] Deleting directory /home/jdu/bdc/hadoop-topology-branch1-new/hadoop-common/build/test/data
> [mkdir] Created dir: /home/jdu/bdc/hadoop-topology-branch1-new/hadoop-common/build/test/data
> [delete] Deleting directory /home/jdu/bdc/hadoop-topology-branch1-new/hadoop-common/build/test/logs
> BUILD FAILED
> /home/jdu/bdc/hadoop-topology-branch1-new/hadoop-common/build.xml:1212: The following error occurred while executing this line:
> /home/jdu/bdc/hadoop-topology-branch1-new/hadoop-common/build.xml:1166: The following error occurred while executing this line:
> /home/jdu/bdc/hadoop-topology-branch1-new/hadoop-common/build.xml:1057: Unable to delete file /home/jdu/bdc/hadoop-topology-branch1-new/hadoop-common/build/test/logs/userlogs/job_20121112223129603_0001/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/attempt_20121112223129603_0001_r_000000_0/stdout
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira