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 <issac.zhang@huolala.cn>
Signed-off-by: Duo Zhang <zhangduo@apache.org>
  • Loading branch information
ZhangIssac and xiaozhang committed Oct 25, 2023
1 parent 2399539 commit 13d46e7
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 @@ -1182,7 +1182,7 @@ def cfd(arg, tdb)
if org.apache.hadoop.hbase.regionserver.BloomType.constants.include?(bloomtype)
cfdb.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?(ColumnFamilyDescriptorBuilder::COMPRESSION)
Expand Down

0 comments on commit 13d46e7

Please sign in to comment.