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 5D970FF14 for ; Tue, 23 Apr 2013 22:11:17 +0000 (UTC) Received: (qmail 69664 invoked by uid 500); 23 Apr 2013 22:11:16 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 69588 invoked by uid 500); 23 Apr 2013 22:11:16 -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 69486 invoked by uid 99); 23 Apr 2013 22:11:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Apr 2013 22:11:16 +0000 Date: Tue, 23 Apr 2013 22:11:16 +0000 (UTC) From: "Nick Dimiduk (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-8378) add 'force' option for drop table 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-8378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nick Dimiduk updated HBASE-8378: -------------------------------- Attachment: 0001-HBASE-8378-shell-add-force-option-to-drop.patch > add 'force' option for drop table > --------------------------------- > > Key: HBASE-8378 > URL: https://issues.apache.org/jira/browse/HBASE-8378 > Project: HBase > Issue Type: Improvement > Components: shell, Usability > Reporter: Nick Dimiduk > Attachments: 0001-HBASE-8378-shell-add-force-option-to-drop.patch > > > Does this logic look familiar? > {noformat} > def drop_table(name): > if (!admin.table_exists?(name): > return > if (admin.enabled?(name)): > admin.disable_table(name) > admin.drop_table(name) > {noformat} > Let's add a force option to 'drop' that does exactly this. We'll save 6 lines of code for thousands of developers in millions of scripts. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira