hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1301690 - /hbase/branches/0.94/src/main/ruby/hbase/admin.rb
Date Fri, 16 Mar 2012 18:47:28 GMT
Author: stack
Date: Fri Mar 16 18:47:28 2012
New Revision: 1301690

URL: http://svn.apache.org/viewvc?rev=1301690&view=rev
Log:
HBASE-5581 Creating a table with invalid syntax does not give an error message when it fails

Modified:
    hbase/branches/0.94/src/main/ruby/hbase/admin.rb

Modified: hbase/branches/0.94/src/main/ruby/hbase/admin.rb
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/src/main/ruby/hbase/admin.rb?rev=1301690&r1=1301689&r2=1301690&view=diff
==============================================================================
--- hbase/branches/0.94/src/main/ruby/hbase/admin.rb (original)
+++ hbase/branches/0.94/src/main/ruby/hbase/admin.rb Fri Mar 16 18:47:28 2012
@@ -200,6 +200,7 @@ module Hbase
             idx = idx + 1
           end
         elsif arg.kind_of?(Hash) and (arg.has_key?(NUMREGIONS) or arg.has_key?(SPLITALGO))
+          raise(ArgumentError, "Column family configuration should be specified in a separate
clause") if arg.has_key?(NAME)
           raise(ArgumentError, "Number of regions must be specified") unless arg.has_key?(NUMREGIONS)
           raise(ArgumentError, "Split algorithm must be specified") unless arg.has_key?(SPLITALGO)
           raise(ArgumentError, "Number of regions must be geter than 1") unless arg[NUMREGIONS]
> 1



Mime
View raw message