Author: stack
Date: Sat May  1 20:10:33 2010
New Revision: 940100

URL: http://svn.apache.org/viewvc?rev=940100&view=rev
Log:
HBASE-2489 Make the "Filesystem needs to be upgraded" error message more useful

Modified:
    hadoop/hbase/trunk/CHANGES.txt
    
hadoop/hbase/trunk/core/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java

Modified: hadoop/hbase/trunk/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/hadoop/hbase/trunk/CHANGES.txt?rev=940100&r1=940099&r2=940100&view=diff
==============================================================================
--- hadoop/hbase/trunk/CHANGES.txt (original)
+++ hadoop/hbase/trunk/CHANGES.txt Sat May  1 20:10:33 2010
@@ -298,6 +298,10 @@ Release 0.21.0 - Unreleased
    HBASE-2497  ProcessServerShutdown throws NullPointerException for offline
                regiond (Miklos Kurucz via Stack)
    HBASE-2499  Race condition when disabling a table leaves regions in 
transition
+   HBASE-2489  Make the "Filesystem needs to be upgraded" error message more
+               useful (Benoit Sigoure via Stack)
+
+              
 
   IMPROVEMENTS
    HBASE-1760  Cleanup TODOs in HTable

Modified: 
hadoop/hbase/trunk/core/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java
URL: 
http://svn.apache.org/viewvc/hadoop/hbase/trunk/core/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java?rev=940100&r1=940099&r2=940100&view=diff
==============================================================================
--- 
hadoop/hbase/trunk/core/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java 
(original)
+++ 
hadoop/hbase/trunk/core/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java 
Sat May  1 20:10:33 2010
@@ -179,8 +179,10 @@ public class FSUtils {
     
     // version is deprecated require migration
     // Output on stdout so user sees it in terminal.
-    String msg = "File system needs to be upgraded. Run " +
-      "the '${HBASE_HOME}/bin/hbase migrate' script.";
+    String msg = "File system needs to be upgraded."
+      + "  You have version " + version
+      + " and I want version " + HConstants.FILE_SYSTEM_VERSION
+      + ".  Run the '${HBASE_HOME}/bin/hbase migrate' script.";
     if (message) {
       System.out.println("WARNING! " + msg);
     }


Reply via email to