hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Daniel Cryans (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-8378) add 'force' option for drop table
Date Thu, 18 Apr 2013 21:54:17 GMT

    [ https://issues.apache.org/jira/browse/HBASE-8378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13635742#comment-13635742
] 

Jean-Daniel Cryans commented on HBASE-8378:
-------------------------------------------

With HBASE-3557 it would be quite a useful thing to use.
                
> 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
>
> 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

Mime
View raw message