Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 83651186B5 for ; Thu, 14 May 2015 04:28:00 +0000 (UTC) Received: (qmail 94368 invoked by uid 500); 14 May 2015 04:28:00 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 94318 invoked by uid 500); 14 May 2015 04:28:00 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 94306 invoked by uid 99); 14 May 2015 04:28:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 May 2015 04:28:00 +0000 Date: Thu, 14 May 2015 04:28:00 +0000 (UTC) From: "ramkrishna.s.vasudevan (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-13670) [HBase MOB] ExpiredMobFileCleaner tool is not deleting the expired mob data. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-13670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14543157#comment-14543157 ] ramkrishna.s.vasudevan commented on HBASE-13670: ------------------------------------------------ I think the explanation makes sense. +1 on documentation. > [HBase MOB] ExpiredMobFileCleaner tool is not deleting the expired mob data. > ---------------------------------------------------------------------------- > > Key: HBASE-13670 > URL: https://issues.apache.org/jira/browse/HBASE-13670 > Project: HBase > Issue Type: Bug > Components: mob > Affects Versions: hbase-11339 > Reporter: Y. SREENIVASULU REDDY > Fix For: hbase-11339 > > > ExpiredMobFileCleaner tool is not deleting the expired mob data. > steps to reproduce: > =============== > 1.Create the table with one column family as mob and set the TTL for mob columnfamily very less. > {code} > hbase(main):020:0> describe 'mobtab' > Table mobtab is ENABLED > mobtab > COLUMN FAMILIES DESCRIPTION > {NAME => 'mobcf', IS_MOB => 'true',MOB_THRESHOLD => '102400', VERSIONS => '1', KEEP_DELETED_CELLS => 'FALSE', DATA_BLOCK_ENCODING => 'NONE', TTL => '60 SECONDS (1 MINUTE)', MIN_VERSIONS => '0', REPLICATION_SCOPE => '0', BL > OOMFILTER => 'ROW', IN_MEMORY => 'false', COMPRESSION => 'NONE', BLOCKCACHE => 'true', BLOCKSIZE => '65536'} > {NAME => 'norcf', BLOOMFILTER => 'ROW', VERSIONS => '1', IN_MEMORY => 'false', KEEP_DELETED_CELLS => 'FALSE', DATA_BLOCK_ENCODING => 'NONE', COMPRESSION => 'NONE', TTL => 'FOREVER', MIN_VERSIONS => '0', BL > OCKCACHE => 'true', BLOCKSIZE => '65536', REPLICATION_SCOPE => '0'} > 2 row(s) in 0.0650 seconds > {code} > 2. then insert the mob data into the table(mobcf), and normal data into the another columnFamily(norcf). > 3. flush the table. > 4. scan the table before TTL expire. (able to fetch the data) > 5. scan the table after TTL got expired, as a result mob data should not display, and mob file should exist in hdfs. > 5. run ExpiredMobFileCleaner tool manually to clean the expired mob data for TTL expired data. > {code} > ./hbase org.apache.hadoop.hbase.mob.ExpiredMobFileCleaner mobtab mobcf > {code} > {code} > client log_message: > 2015-05-09 18:03:37,731 INFO [main] mob.ExpiredMobFileCleaner: Cleaning the expired MOB files of mobcf in mobtab > 2015-05-09 18:03:37,734 INFO [main] hfile.CacheConfig: CacheConfig:disabled > 2015-05-09 18:03:37,738 INFO [main] mob.MobUtils: MOB HFiles older than 8 May 2015 18:30:00 GMT will be deleted! > 2015-05-09 18:03:37,971 DEBUG [main] mob.MobUtils: Checking file d41d8cd98f00b204e9800998ecf8427e20150509c9108e1a9252418abbfd54323922c518 > 2015-05-09 18:03:37,971 INFO [main] mob.MobUtils: 0 expired mob files are deleted > 2015-05-09 18:03:37,971 INFO [main] client.ConnectionManager$HConnectionImplementation: Closing master protocol: MasterService > {code} > *problem:* > If we run ExpiredMobFileCleaner tool manually, it is not deleting the expired mob data. For deletion it is considering default time period "hbase.master.mob.ttl.cleaner.period". > With this Time period "hbase.master.mob.ttl.cleaner.period" only ExpiredMobFileCleanerChore should consider. > {code} > conf: > > hbase.master.mob.ttl.cleaner.period > 86400000 > hbase-default.xml > > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)