HBASE-19495 Fix failed ut TestShell

Signed-off-by: Michael Stack <stack@apache.org>
This commit is contained in:
Guanghao Zhang 2017-12-12 17:58:14 +08:00 committed by Michael Stack
parent 11467ef111
commit 54cd677cbe
No known key found for this signature in database
GPG Key ID: 9816C7FC8ACC93D2
2 changed files with 0 additions and 3 deletions

View File

@ -849,7 +849,6 @@ module Hbase
family.setCacheIndexesOnWrite(JBoolean.valueOf(arg.delete(org.apache.hadoop.hbase.HColumnDescriptor::CACHE_INDEX_ON_WRITE))) if arg.include?(org.apache.hadoop.hbase.HColumnDescriptor::CACHE_INDEX_ON_WRITE)
family.setCacheBloomsOnWrite(JBoolean.valueOf(arg.delete(org.apache.hadoop.hbase.HColumnDescriptor::CACHE_BLOOMS_ON_WRITE))) if arg.include?(org.apache.hadoop.hbase.HColumnDescriptor::CACHE_BLOOMS_ON_WRITE)
family.setEvictBlocksOnClose(JBoolean.valueOf(arg.delete(org.apache.hadoop.hbase.HColumnDescriptor::EVICT_BLOCKS_ON_CLOSE))) if arg.include?(org.apache.hadoop.hbase.HColumnDescriptor::EVICT_BLOCKS_ON_CLOSE)
family.setCacheDataInL1(JBoolean.valueOf(arg.delete(org.apache.hadoop.hbase.HColumnDescriptor::CACHE_DATA_IN_L1))) if arg.include?(org.apache.hadoop.hbase.HColumnDescriptor::CACHE_DATA_IN_L1)
family.setInMemory(JBoolean.valueOf(arg.delete(org.apache.hadoop.hbase.HColumnDescriptor::IN_MEMORY))) if arg.include?(org.apache.hadoop.hbase.HColumnDescriptor::IN_MEMORY)
if arg.include?(org.apache.hadoop.hbase.HColumnDescriptor::IN_MEMORY_COMPACTION)
family.setInMemoryCompaction(

View File

@ -202,13 +202,11 @@ module Hbase
command(:create, @create_test_name,
{ NAME => 'a',
CACHE_BLOOMS_ON_WRITE => 'TRUE',
CACHE_DATA_IN_L1 => 'TRUE',
CACHE_INDEX_ON_WRITE => 'TRUE',
EVICT_BLOCKS_ON_CLOSE => 'TRUE',
COMPRESSION_COMPACT => 'GZ'})
assert_equal(['a:'], table(@create_test_name).get_all_columns.sort)
assert_match(/CACHE_BLOOMS_ON_WRITE/, admin.describe(@create_test_name))
assert_match(/CACHE_DATA_IN_L1/, admin.describe(@create_test_name))
assert_match(/CACHE_INDEX_ON_WRITE/, admin.describe(@create_test_name))
assert_match(/EVICT_BLOCKS_ON_CLOSE/, admin.describe(@create_test_name))
assert_match(/GZ/, admin.describe(@create_test_name))