hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r634787 - in /hadoop/hbase/branches/0.1: CHANGES.txt src/java/org/apache/hadoop/hbase/HMaster.java
Date Fri, 07 Mar 2008 19:34:59 GMT
Author: jimk
Date: Fri Mar  7 11:34:58 2008
New Revision: 634787

URL: http://svn.apache.org/viewvc?rev=634787&view=rev
Log:
HBASE-79    When HBase needs to be migrated, it should display a message on stdout, not just
in the logs

Modified:
    hadoop/hbase/branches/0.1/CHANGES.txt
    hadoop/hbase/branches/0.1/src/java/org/apache/hadoop/hbase/HMaster.java

Modified: hadoop/hbase/branches/0.1/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.1/CHANGES.txt?rev=634787&r1=634786&r2=634787&view=diff
==============================================================================
--- hadoop/hbase/branches/0.1/CHANGES.txt (original)
+++ hadoop/hbase/branches/0.1/CHANGES.txt Fri Mar  7 11:34:58 2008
@@ -33,6 +33,8 @@
    HBASE-490   Doubly-assigned .META.; master uses one and clients another
    HBASE-496   impossible state for createLease writes 400k lines in about 15mins
    HBASE-472   Passing on edits, we dump all to log
+   HBASE-79    When HBase needs to be migrated, it should display a message on
+               stdout, not just in the logs
 
   IMPROVEMENTS
    HADOOP-2555 Refactor the HTable#get and HTable#getRow methods to avoid

Modified: hadoop/hbase/branches/0.1/src/java/org/apache/hadoop/hbase/HMaster.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.1/src/java/org/apache/hadoop/hbase/HMaster.java?rev=634787&r1=634786&r2=634787&view=diff
==============================================================================
--- hadoop/hbase/branches/0.1/src/java/org/apache/hadoop/hbase/HMaster.java (original)
+++ hadoop/hbase/branches/0.1/src/java/org/apache/hadoop/hbase/HMaster.java Fri Mar  7 11:34:58
2008
@@ -878,8 +878,11 @@
         fs.mkdirs(rootdir);
         FSUtils.setVersion(fs, rootdir);
       } else if (!FSUtils.checkVersion(fs, rootdir)) {
-        throw new IOException("File system needs upgrade. Run " +
-          "the '${HBASE_HOME}/bin/hbase migrate' script");
+        // Output on stdout so user sees it in terminal.
+        String message = "File system needs to be upgraded. Run " +
+          "the '${HBASE_HOME}/bin/hbase migrate' script.";
+        System.out.println("WARNING! " + message + " Master shutting down...");
+        throw new IOException(message);
       }
 
       if (!fs.exists(rootRegionDir)) {



Mime
View raw message