hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdcry...@apache.org
Subject svn commit: r684063 - in /hadoop/hbase/branches/0.2: CHANGES.txt bin/HBase.rb
Date Fri, 08 Aug 2008 19:34:34 GMT
Author: jdcryans
Date: Fri Aug  8 12:34:32 2008
New Revision: 684063

URL: http://svn.apache.org/viewvc?rev=684063&view=rev
Log:
HBASE-801  When a table haven't disable, shell could response in a "user friendly" way.

Modified:
    hadoop/hbase/branches/0.2/CHANGES.txt
    hadoop/hbase/branches/0.2/bin/HBase.rb

Modified: hadoop/hbase/branches/0.2/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.2/CHANGES.txt?rev=684063&r1=684062&r2=684063&view=diff
==============================================================================
--- hadoop/hbase/branches/0.2/CHANGES.txt (original)
+++ hadoop/hbase/branches/0.2/CHANGES.txt Fri Aug  8 12:34:32 2008
@@ -1,6 +1,6 @@
 Hbase Change Log
 
-Unrelease Changes
+Release 0.3.0 - Unreleased
 
   INCOMPATIBLE CHANGES
   BUG FIXES
@@ -8,6 +8,9 @@
                Jim Kellerman)
 
   IMPROVEMENTS
+   HBASE-801  When a table haven't disable, shell could response in a "user
+              friendly" way.
+
   NEW FEATURES
   OPTIMIZATIONS
 

Modified: hadoop/hbase/branches/0.2/bin/HBase.rb
URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.2/bin/HBase.rb?rev=684063&r1=684062&r2=684063&view=diff
==============================================================================
--- hadoop/hbase/branches/0.2/bin/HBase.rb (original)
+++ hadoop/hbase/branches/0.2/bin/HBase.rb Fri Aug  8 12:34:32 2008
@@ -89,8 +89,12 @@
 
     def drop(tableName)
       now = Time.now 
-      @admin.deleteTable(tableName)
       @formatter.header()
+      if @admin.isTableEnabled(tableName)
+        raise IOError.new("Table " + tableName + " is enabled. Disable it first")
+      else
+        @admin.deleteTable(tableName)
+      end
       @formatter.footer(now)
     end
 



Mime
View raw message