Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C3BB0102D2 for ; Fri, 14 Feb 2014 11:53:37 +0000 (UTC) Received: (qmail 16404 invoked by uid 500); 14 Feb 2014 11:53:33 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 16311 invoked by uid 500); 14 Feb 2014 11:53:26 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 16238 invoked by uid 99); 14 Feb 2014 11:53:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Feb 2014 11:53:20 +0000 Date: Fri, 14 Feb 2014 11:53:20 +0000 (UTC) From: "Liu Shaohui (JIRA)" To: dev@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HBASE-10535) Table trash to recover table deleted by mistake MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Liu Shaohui created HBASE-10535: ----------------------------------- Summary: Table trash to recover table deleted by mistake Key: HBASE-10535 URL: https://issues.apache.org/jira/browse/HBASE-10535 Project: HBase Issue Type: Improvement Reporter: Liu Shaohui Priority: Minor When table is deleted, only Hfiles are moved to archives dir, table and region infos are deleted immediately. So it's very difficult to recover tables which are deleted by mistakes. I think if we can introduce an table trash dir in HDFS. When the table is deleted, the entire table dir is moved to trash dir. And after an configurable ttl, the dir is deleted actually. This can be done by HMaster. If we want to recover the deleted table, we can use a tool which moves table dir out of trash and recovery the meta data of the table. There are many problems the recover tool will encountered eg, parent and daughter regions are all in the table dir. But I think this feature is useful to handle some special cases. Discussions are welcomed. -- This message was sent by Atlassian JIRA (v6.1.5#6160)