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 84394186F9 for ; Thu, 14 May 2015 04:40:00 +0000 (UTC) Received: (qmail 8047 invoked by uid 500); 14 May 2015 04:40:00 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 8001 invoked by uid 500); 14 May 2015 04:40: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 7988 invoked by uid 99); 14 May 2015 04:40: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:40:00 +0000 Date: Thu, 14 May 2015 04:40:00 +0000 (UTC) From: "sunhaitao (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: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-13670?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D145= 43165#comment-14543165 ]=20 sunhaitao commented on HBASE-13670: ----------------------------------- i agree=EF=BC=8C +1 on document > [HBase MOB] ExpiredMobFileCleaner tool is not deleting the expired mob da= ta. > -------------------------------------------------------------------------= --- > > 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: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 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 =3D> 'mobcf', IS_MOB =3D> 'true',MOB_THRESHOLD =3D> '102400', VERS= IONS =3D> '1', KEEP_DELETED_CELLS =3D> 'FALSE', DATA_BLOCK_ENCODING =3D> 'N= ONE', TTL =3D> '60 SECONDS (1 MINUTE)', MIN_VERSIONS =3D> '0', REPLICATION_= SCOPE =3D> '0', BL > OOMFILTER =3D> 'ROW', IN_MEMORY =3D> 'false', COMPRESSION =3D> 'NONE', BL= OCKCACHE =3D> 'true', BLOCKSIZE =3D> '65536'} > {NAME =3D> 'norcf', BLOOMFILTER =3D> 'ROW', VERSIONS =3D> '1', IN_MEMORY = =3D> 'false', KEEP_DELETED_CELLS =3D> 'FALSE', DATA_BLOCK_ENCODING =3D> 'NO= NE', COMPRESSION =3D> 'NONE', TTL =3D> 'FOREVER', MIN_VERSIONS =3D> '0', BL > OCKCACHE =3D> 'true', BLOCKSIZE =3D> '65536', REPLICATION_SCOPE =3D> '0'} > 2 row(s) in 0.0650 seconds > {code} > 2. then insert the mob data into the table(mobcf), and normal data into t= he 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:disab= led > 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 d41d8cd9= 8f00b204e9800998ecf8427e20150509c9108e1a9252418abbfd54323922c518 > 2015-05-09 18:03:37,971 INFO [main] mob.MobUtils: 0 expired mob files ar= e deleted > 2015-05-09 18:03:37,971 INFO [main] client.ConnectionManager$HConnection= Implementation: Closing master protocol: MasterService > {code} > *problem:* > If we run ExpiredMobFileCleaner tool manually, it is not deleting the exp= ired mob data. For deletion it is considering default time period "hbase.ma= ster.mob.ttl.cleaner.period". > With this Time period "hbase.master.mob.ttl.cleaner.period" only ExpiredM= obFileCleanerChore 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)