You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by cd...@apache.org on 2009/10/17 02:14:55 UTC

svn commit: r826138 - in /hadoop/common/branches/branch-0.20: CHANGES.txt src/ant/org/apache/hadoop/ant/condition/DfsBaseConditional.java

Author: cdouglas
Date: Sat Oct 17 00:14:55 2009
New Revision: 826138

URL: http://svn.apache.org/viewvc?rev=826138&view=rev
Log:
HDFS-579. Fix DfsTask to follow the semantics of 0.19, regarding non-zero
return values as failures. Contributed by Christian Kunz

Modified:
    hadoop/common/branches/branch-0.20/CHANGES.txt
    hadoop/common/branches/branch-0.20/src/ant/org/apache/hadoop/ant/condition/DfsBaseConditional.java

Modified: hadoop/common/branches/branch-0.20/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20/CHANGES.txt?rev=826138&r1=826137&r2=826138&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20/CHANGES.txt (original)
+++ hadoop/common/branches/branch-0.20/CHANGES.txt Sat Oct 17 00:14:55 2009
@@ -26,6 +26,9 @@
     HDFS-709. Fix TestDFSShell failure due to rename bug introduced by 
     HDFS-677. (suresh)
 
+    HDFS-579. Fix DfsTask to follow the semantics of 0.19, regarding non-zero
+    return values as failures. (Christian Kunz via cdouglas)
+
 Release 0.20.1 - 2009-09-01
 
   INCOMPATIBLE CHANGES

Modified: hadoop/common/branches/branch-0.20/src/ant/org/apache/hadoop/ant/condition/DfsBaseConditional.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20/src/ant/org/apache/hadoop/ant/condition/DfsBaseConditional.java?rev=826138&r1=826137&r2=826138&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20/src/ant/org/apache/hadoop/ant/condition/DfsBaseConditional.java (original)
+++ hadoop/common/branches/branch-0.20/src/ant/org/apache/hadoop/ant/condition/DfsBaseConditional.java Sat Oct 17 00:14:55 2009
@@ -56,7 +56,7 @@
 
   protected int postCmd(int exit_code) {
     exit_code = super.postCmd(exit_code);
-    result = exit_code == 1;
+    result = exit_code == 0;
     return exit_code;
   }