소스 검색

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 년 전
부모
커밋
a85c06c0e7
2개의 변경된 파일10개의 추가작업 그리고 1개의 파일을 삭제
  1. 9 0
      CHANGES.txt
  2. 1 1
      src/ant/org/apache/hadoop/ant/condition/DfsBaseConditional.java

+ 9 - 0
CHANGES.txt

@@ -421,6 +421,15 @@ Release 0.20.2 - Unreleased
     HDFS-686. NullPointerException is thrown while merging edit log and image.
     HDFS-686. NullPointerException is thrown while merging edit log and image.
     (hairong)
     (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
 Release 0.20.1 - 2009-09-01
 
 
   IMPROVEMENTS
   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) {
   protected int postCmd(int exit_code) {
     exit_code = super.postCmd(exit_code);
     exit_code = super.postCmd(exit_code);
-    result = exit_code == 1;
+    result = exit_code == 0;
     return exit_code;
     return exit_code;
   }
   }