Hi groups,

 

   I am not sure if I am writing to the right group. If not, do not hesitate to 
forward my question below to the right email group if you know.

 

  My question is : Will the TTL  expired files  be deleted during minor compact 
or major compact?

 

I am puzzled by two statements In the  Apache HBase ™ Reference 
Guide(http://hbase.apache.org/book.html) .

 

The first one is : 

39. Time To Live (TTL)

ColumnFamilies can set a TTL length in seconds, and HBase will automatically 
delete rows once the expiration time is reached. This applies to all versions 
of a row - even the current one. The TTL time encoded in the HBase for the row 
is specified in UTC.

Store files which contains only expired rows are deleted on minor compaction. 

The second is;

70.7.7. Compaction

.....

Minor compactions usually select a small number of small, adjacent StoreFiles 
and rewrite them as a single StoreFile. 

Minor compactions do not drop (filter out) deletes or expired versions, because 
of potential side effects. 

 

 

Do these two statements  in red-colored have conflict?  Both "expired" in these 
two statements refer to the TTL expired ,am I right?

 

Very appreciate if you could help to make some explanation about it.

 

I am looking forward to your reply.

 

Thanks and Best Regards.

Reply via email to