hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s..@apache.org
Subject svn commit: r646569 - in /hadoop/core/trunk: CHANGES.txt src/java/org/apache/hadoop/dfs/FSNamesystem.java
Date Wed, 09 Apr 2008 22:28:07 GMT
Author: shv
Date: Wed Apr  9 15:28:06 2008
New Revision: 646569

URL: http://svn.apache.org/viewvc?rev=646569&view=rev
Log:
HADOOP-3220. Safemode message corrected. Contributed by Konstantin Shvachko.

Modified:
    hadoop/core/trunk/CHANGES.txt
    hadoop/core/trunk/src/java/org/apache/hadoop/dfs/FSNamesystem.java

Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=646569&r1=646568&r2=646569&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Wed Apr  9 15:28:06 2008
@@ -545,6 +545,8 @@
     HADOOP-3175. Fix FsShell.CommandFormat to handle "-" in arguments.
     (Edward J. Yoon via rangadi)
 
+    HADOOP-3220. Safemode message corrected. (shv)
+
 Release 0.16.3 - Unreleased
 
   BUG FIXES

Modified: hadoop/core/trunk/src/java/org/apache/hadoop/dfs/FSNamesystem.java
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/java/org/apache/hadoop/dfs/FSNamesystem.java?rev=646569&r1=646568&r2=646569&view=diff
==============================================================================
--- hadoop/core/trunk/src/java/org/apache/hadoop/dfs/FSNamesystem.java (original)
+++ hadoop/core/trunk/src/java/org/apache/hadoop/dfs/FSNamesystem.java Wed Apr  9 15:28:06
2008
@@ -3874,8 +3874,8 @@
         return "Use \"hadoop dfs -safemode leave\" to turn safe mode off.";
       }
       String safeBlockRatioMsg = 
-        String.format(
-          "The ratio of reported blocks %.4f has not reached the threshold %.4f. ",
+        String.format("The ratio of reported blocks %.4f has " +
+          (reached == 0 ? "not " : "") + "reached the threshold %.4f. ",
           getSafeBlockRatio(), threshold) + autoOffMsg;
       if(reached == 0)  // threshold is not reached 
         return safeBlockRatioMsg + ".";



Mime
View raw message