[
https://issues.apache.org/jira/browse/HBASE-8378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrew Kyle Purtell resolved HBASE-8378.
----------------------------------------
Hadoop Flags: (was: Reviewed)
Release Note: (was: New optional argument to 'drop' shell command will
disable a table on user's behalf when necessary.)
Assignee: (was: Nick Dimiduk)
Resolution: Won't Fix
> 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
> Affects Versions: 0.94.6.1, 0.95.0
> Reporter: Nick Dimiduk
> Priority: Major
> Attachments: 0001-HBASE-8378-shell-add-force-option-to-drop.patch,
> 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 was sent by Atlassian Jira
(v8.20.7#820007)