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 4fa8b47 commit 46cfaff
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 @@ -1087,7 +1087,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 46cfaff

Please sign in to comment.