hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r486364 - in /lucene/hadoop/trunk: CHANGES.txt src/java/org/apache/hadoop/dfs/DFSShell.java
Date Tue, 12 Dec 2006 22:12:16 GMT
Author: cutting
Date: Tue Dec 12 14:12:15 2006
New Revision: 486364

URL: http://svn.apache.org/viewvc?view=rev&rev=486364
Log:
HADOOP-792.  Fix 'dfs -mv' to return correct status.  Contributed by Dhruba.

Modified:
    lucene/hadoop/trunk/CHANGES.txt
    lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DFSShell.java

Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?view=diff&rev=486364&r1=486363&r2=486364
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Tue Dec 12 14:12:15 2006
@@ -68,6 +68,9 @@
 
 20. HADOOP-782.  Fully remove killed tasks.  (Arun C Murthy via cutting)
 
+21. HADOOP-792.  Fix 'dfs -mv' to return correct status.
+    (Dhruba Borthakur via cutting) 
+
 
 Release 0.9.1 - 2006-12-06
 

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DFSShell.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DFSShell.java?view=diff&rev=486364&r1=486363&r2=486364
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DFSShell.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DFSShell.java Tue Dec 12 14:12:15 2006
@@ -359,7 +359,7 @@
         if (fs.rename(srcs[i], dst)) {
             System.out.println("Renamed " + srcs[i] + " to " + dstf);
         } else {
-            System.out.println("Rename failed " + srcs[i]);
+            throw new IOException("Rename failed " + srcs[i]);
         }
       }
     }



Mime
View raw message