Hi,

I am using HBase version 1.2.7

Getting old value for the cell after TTL expiry of latest cell value set
with TTL.

Table:

COLUMN FAMILIES DESCRIPTION

{NAME => 'data', 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 => '1'}

First time I am putting cell value without TTL and second time I am puting
value with TTL.

Eg command sequencee

> put 'sepTest', '18', 'data:value', '18'

> flush 'sepTest'

> get 'sepTest', '18'

value : 18

> put 'sepTest', '18', 'data:value', 'update_18', {TTL => 100000}

> get 'sepTest', '18'

value : update_18

>  flush 'sepTest'

> get 'sepTest', '18'

value : update_18

after around TTL expiry ( 100000 )

> get 'sepTest', '18'

value : 18

> major_compact 'sepTest'

Since my max version is set to 1, I am not able to understand why I am
getting value 18?

As per my understanding in the second put with TTL should have overridden
the old value and after the expiry of second put, I should not get any
value.

Attaching screenshot for reference.

Reply via email to