谷歌云bigtable列版本未被删除

时间:2017-10-20 18:37:51

标签: google-cloud-platform google-cloud-bigtable

我们在cloud bigtable中创建了一个包含两个列族的表。一个列族有30个版本,另一个有1个版本。但是,当我们查询表时,我们得到了多个版本的列,我们已将最大版本数设置为1。

表创建语句:

create 'myTable', {NAME => 'cf1', VERSIONS => '30'}, {NAME => 'cf2', VERSIONS => '1'}


Describe 'myTable':

{NAME => ‘cf2’, BLOOMFILTER => ‘ROW’, VERSIONS => ‘**1**’, IN_MEMORY => ‘false’, KEEP_DELETED_CELLS => ‘FALSE’, DATA_BLOCK_ENCODING => ‘NONE’, TTL => ‘FOREVER’, COMPRESSION => ‘NONE’, MIN_VERSIONS => ‘0’, BLOCKCACHE => ‘true’, BLOCKSIZE => ‘65536’, REPLICATION_SCOPE
 => ‘0’}                                                                                                                                                                                                                                                                        
{NAME => ‘cf1’, BLOOMFILTER => ‘ROW’, VERSIONS => ‘**30**’, IN_MEMORY => ‘false’, KEEP_DELETED_CELLS => ‘FALSE’, DATA_BLOCK_ENCODING => ‘NONE’, TTL => ‘FOREVER’, COMPRESSION => ‘NONE’, MIN_VERSIONS => ‘0’, BLOCKCACHE => ‘true’, BLOCKSIZE => ‘65536’, REPLICATION_SCOPE
 => ‘0’}

bigtable垃圾收集如何工作?它删除旧版本的频率是多少?或者我们在创建表时是否遗漏了某些内容?

1 个答案:

答案 0 :(得分:4)

来自Bigtable Docs:值的删除在后台机会性地发生,因此您可能仍然能够在数据过期后几天读取数据。

Link to docs