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 8289198BE for ; Mon, 25 Jun 2012 22:10:47 +0000 (UTC) Received: (qmail 37989 invoked by uid 500); 25 Jun 2012 22:10:46 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 37908 invoked by uid 500); 25 Jun 2012 22:10:46 -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 37634 invoked by uid 99); 25 Jun 2012 22:10:46 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jun 2012 22:10:46 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 5727D141E10 for ; Mon, 25 Jun 2012 22:10:45 +0000 (UTC) Date: Mon, 25 Jun 2012 22:10:45 +0000 (UTC) From: "Zhihong Ted Yu (JIRA)" To: issues@hbase.apache.org Message-ID: <220464080.53699.1340662245360.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1432705389.11847.1339580023103.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (HBASE-6205) Support an option to keep data of dropped table for some time 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-6205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13400958#comment-13400958 ] Zhihong Ted Yu commented on HBASE-6205: --------------------------------------- Over in HBASE-2315, Flavio proposed basing WAL on Bookkeeper. Before WAL can have separate file system other than that used by HFiles, we should accommodate more file system choices beyond hdfs. > Support an option to keep data of dropped table for some time > ------------------------------------------------------------- > > Key: HBASE-6205 > URL: https://issues.apache.org/jira/browse/HBASE-6205 > Project: HBase > Issue Type: New Feature > Affects Versions: 0.94.0, 0.96.0 > Reporter: chunhui shen > Assignee: chunhui shen > Fix For: 0.96.0 > > Attachments: HBASE-6205.patch, HBASE-6205v2.patch, HBASE-6205v3.patch, HBASE-6205v4.patch, HBASE-6205v5.patch > > > User may drop table accidentally because of error code or other uncertain reasons. > Unfortunately, it happens in our environment because one user make a mistake between production cluster and testing cluster. > So, I just give a suggestion, do we need to support an option to keep data of dropped table for some time, e.g. 1 day > In the patch: > We make a new dir named .trashtables in the rood dir. > In the DeleteTableHandler, we move files in dropped table's dir to trash table dir instead of deleting them directly. > And Create new class TrashCleaner which will clean dropped tables if it is time out with a period check. > Default keep time for dropped tables is 1 day, and check period is 1 hour. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira