You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2008/02/19 20:38:40 UTC
svn commit: r629203 - in /hadoop/hbase/trunk: CHANGES.txt
src/java/org/apache/hadoop/hbase/master/HMaster.java
Author: stack
Date: Tue Feb 19 11:38:37 2008
New Revision: 629203
URL: http://svn.apache.org/viewvc?rev=629203&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/trunk/CHANGES.txt
hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/master/HMaster.java
Modified: hadoop/hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/CHANGES.txt?rev=629203&r1=629202&r2=629203&view=diff
==============================================================================
--- hadoop/hbase/trunk/CHANGES.txt (original)
+++ hadoop/hbase/trunk/CHANGES.txt Tue Feb 19 11:38:37 2008
@@ -57,6 +57,8 @@
HBASE-444 hbase is very slow at determining table is not present
HBASE-438 XMLOutputter state should be initialized.
HBASE-414 Move client classes into client package
+ HBASE-79 When HBase needs to be migrated, it should display a message on
+ stdout, not just in the logs
Branch 0.1
Modified: hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/master/HMaster.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/master/HMaster.java?rev=629203&r1=629202&r2=629203&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/master/HMaster.java (original)
+++ hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/master/HMaster.java Tue Feb 19 11:38:37 2008
@@ -273,8 +273,13 @@
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 = "The HBase data files stored on the FileSystem are " +
+ "from an earlier version of HBase. You need to run " +
+ "'${HBASE_HOME}/bin/hbase migrate' to bring your installation +
+ "up-to-date.";
+ System.out.println("WARNING! " + message + " Master shutting down...");
+ throw new IOException(message);
}
if (!fs.exists(rootRegionDir)) {