Browse Source

HDFS-579. Fix DfsTask to follow the semantics of 0.19, regarding non-zero
return values as failures. Contributed by Christian Kunz


git-svn-id: https://svn.apache.org/repos/asf/hadoop/hdfs/trunk@826136 13f79535-47bb-0310-9956-ffa450edef68

Christopher Douglas 16 năm trước cách đây
mục cha
commit
a85c06c0e7

+ 9 - 0
CHANGES.txt

@@ -421,6 +421,15 @@ Release 0.20.2 - Unreleased
     HDFS-686. NullPointerException is thrown while merging edit log and image.
     (hairong)
 
+    HDFS-677. Rename failure when both source and destination quota exceeds
+    results in deletion of source. (suresh)
+
+    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
 
   IMPROVEMENTS

+ 1 - 1
src/ant/org/apache/hadoop/ant/condition/DfsBaseConditional.java

@@ -56,7 +56,7 @@ public abstract class DfsBaseConditional extends org.apache.hadoop.ant.DfsTask
 
   protected int postCmd(int exit_code) {
     exit_code = super.postCmd(exit_code);
-    result = exit_code == 1;
+    result = exit_code == 0;
     return exit_code;
   }