HBASE-5581 Creating a table with invalid syntax does not give an error message when it fails

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1301688 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2012-03-16 18:46:53 +00:00
parent 8e84390b37
commit a388bae569
1 changed files with 1 additions and 0 deletions

View File

@ -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