Skip to content

Commit

Permalink
HBASE-28145 When specifying the wrong BoolFilter type while creating …
Browse files Browse the repository at this point in the history
…a table in HBase shell, the log prompt will report an error. (#5460)

Co-authored-by: xiaozhang <[email protected]>
Signed-off-by: Duo Zhang <[email protected]>
(cherry picked from commit 13d46e7)
  • Loading branch information
ZhangIssac authored and Apache9 committed Oct 25, 2023
1 parent dc5539c commit 88e9477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hbase-shell/src/main/ruby/hbase/admin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,7 @@ def hcd(arg, htd)
if org.apache.hadoop.hbase.regionserver.BloomType.constants.include?(bloomtype)
family.setBloomFilterType(org.apache.hadoop.hbase.regionserver.BloomType.valueOf(bloomtype))
else
raise(ArgumentError, "BloomFilter type #{bloomtype} is not supported. Use one of " + org.apache.hadoop.hbase.regionserver.StoreFile::BloomType.constants.join(' '))
raise(ArgumentError, "BloomFilter type #{bloomtype} is not supported. Use one of " + org.apache.hadoop.hbase.regionserver.BloomType.constants.join(' '))
end
end
if arg.include?(org.apache.hadoop.hbase.HColumnDescriptor::COMPRESSION)
Expand Down

0 comments on commit 88e9477

Please sign in to comment.